Right now, we read the xml during instantiation of the libvirt driver. Just move that call into the spawn() method, and you should be fine. It's a pointless optimisation anyway.
It's a local file. If it made a difference to cache a local, small file in memory rather than reading it every time we need it (which is only whenever we need to boot a new VM), we'd be in serious trouble.
Right now, we read the xml during instantiation of the libvirt driver. Just move that call into the spawn() method, and you should be fine. It's a pointless optimisation anyway.
It's a local file. If it made a difference to cache a local, small file in memory rather than reading it every time we need it (which is only whenever we need to boot a new VM), we'd be in serious trouble.