On Tue, Oct 07, 2008 at 05:37:52PM +0100, Daniel P. Berrange wrote:
[..snip..]
This also needs to be implemented with the assumption that the
daemon
can & will crash any time. So putting the state-saving hooks into the
qemudShutdown() method won't be sufficient. We need to write out the
state we need when initially starting the VM, and then update it any
time we hot-plug/unplug devices.
This was actually the first way I looked at this
but decided to do it
the other way around since it saves us from updating the live config all
the time. But if we consider libvirtd crashable it's indeed better
to go this way. I'll come up with a different patch, might be a couple
of days before I get around to it though.
-- Guido