]> xenbits.xensource.com Git - libvirt.git/commit
qemu: allow creation of a paused domain
authorEric Blake <eblake@redhat.com>
Tue, 8 Jun 2010 19:02:40 +0000 (13:02 -0600)
committerEric Blake <eblake@redhat.com>
Tue, 8 Jun 2010 21:35:57 +0000 (15:35 -0600)
commit68e4793ae0fec345a06cda2b0f6c322754509218
tree834b579c27346bf5fe78ef3dc1b003663d6ebebc
parent2502ebb30a95cdf71d4421c510d06f01b4483da0
qemu: allow creation of a paused domain

https://bugzilla.redhat.com/show_bug.cgi?id=589465

Some guests (eg with badly configured grub, or Windows' installation cd)
require quick response from the console user. That's why we have a
"launchPaused" option in vdsm.

To implement it via libvirt, we need to ask libvirt not to call
qemuMonitorStartCPUs() after starting qemu.  Calling virDomainStop
immediately after the domain is up is inherently raceful.

* src/qemu/qemu_driver.c (qemudStartVMDaemon): Add new parameter;
all callers adjusted.
(qemudDomainCreate): Implement support for new flag.
src/qemu/qemu_driver.c