]> xenbits.xensource.com Git - libvirt.git/commit
libxl: don't overwrite domain state from statedir config
authorJim Fehlig <jfehlig@suse.com>
Wed, 24 Jun 2015 21:02:15 +0000 (15:02 -0600)
committerJim Fehlig <jfehlig@suse.com>
Tue, 30 Jun 2015 17:02:29 +0000 (11:02 -0600)
commit29b154e29ad8270f435a23f8b94e4b3d8cf0960d
tree5919693965b65669d276d3388fc94c9133d566d0
parent0b328383942f1a349ec11f88ce756c4807f236c2
libxl: don't overwrite domain state from statedir config

When restarting libvirtd and reconnecting to running domains,
libxlReconnectDomain() would unconditionally set the domain state
to VIR_DOMAIN_RUNNING, overwriting the state maintained in
$statedir/<domname>.xml.  A domain in a paused state would have
the state changed to running, even though it was actually in a
paused state.

Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_driver.c