From 8c794d95e296c4e4c154c9f6b9d14414292d2e0c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Thu, 8 Mar 2012 12:06:30 +0100 Subject: [PATCH] dom0/core: pause also stubdom when pausing HVM --- dom0/qvm-core/qubes.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index f6261a5c..09cb89f5 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2247,6 +2247,20 @@ class QubesHVm(QubesVm): def start_qrexec_daemon(self, **kwargs): pass + def pause(self): + if dry_run: + return + + xc.domain_pause(self.stubdom_xid) + super(QubesHVm, self).pause() + + def unpause(self): + if dry_run: + return + + xc.domain_unpause(self.stubdom_xid) + super(QubesHVm, self).unpause() + def get_xml_attrs(self): attrs = super(QubesHVm, self).get_xml_attrs() attrs["drive"] = str(self.drive)