mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 02:30:03 +01:00
Fix domain save when guest is in S3.
Signed-off-by: Keir Fraser <keir.fraser@citrix.com>
This commit is contained in:
1 parent
3d9c2d2856
commit
a046a6dc89
2 files changed
+4
-9
No files matched your search
@@ -517,7 +517,8 @@ class XendDomainInfo:
|
||||
# HVM domain shuts itself down only if it has PV drivers
|
||||
if self.info.is_hvm():
|
||||
hvm_pvdrv = xc.hvm_get_param(self.domid, HVM_PARAM_CALLBACK_IRQ)
|
||||
if not hvm_pvdrv:
|
||||
hvm_s_state = xc.hvm_get_param(self.domid, HVM_PARAM_ACPI_S_STATE)
|
||||
if not hvm_pvdrv or hvm_s_state != 0:
|
||||
code = REVERSE_DOMAIN_SHUTDOWN_REASONS[reason]
|
||||
log.info("HVM save:remote shutdown dom %d!", self.domid)
|
||||
xc.domain_shutdown(self.domid, code)
|
||||
|
||||