mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-08 22:15:21 +00:00
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>
This commit is contained in:
parent
0b32838394
commit
29b154e29a
@ -372,8 +372,6 @@ libxlReconnectDomain(virDomainObjPtr vm,
|
||||
vm->def, VIR_HOSTDEV_SP_PCI) < 0)
|
||||
goto out;
|
||||
|
||||
virDomainObjSetState(vm, VIR_DOMAIN_RUNNING, VIR_DOMAIN_RUNNING_UNKNOWN);
|
||||
|
||||
if (virAtomicIntInc(&driver->nactive) == 1 && driver->inhibitCallback)
|
||||
driver->inhibitCallback(true, driver->inhibitOpaque);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user