On 19 December 2014 at 10:53, Mark Cave-Ayland <mark.cave-ayl...@ilande.co.uk> wrote: > It seems that I've misunderstood something mentioned earlier in the > thread, i.e. that loadvm also does the create, initialize, realize and > reset cycle. At least issuing "loadvm" in the monitor doesn't seem to do > that as far as I can see here?
For monitor "loadvm", we've already done create/initialize/realize as part of our initial setup of the VM when we started QEMU. reset is done by load_vmstate() calling qemu_system_reset(). For command line "-loadvm", we do the load_vmstate() after the initial reset in vl.c. Either way, VM reloading doesn't need to deal with anything that's set up in device init/realize as a fixed config, and it doesn't need to assert IRQ lines either. thanks -- PMM