From d1bd26ebe01ede481bb39a6ea7df1e99151336ea Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Fri, 2 Mar 2012 02:38:01 +0100 Subject: [PATCH] dom0/core: get stubdom xid also for paused domains Especially during HVM startup. --- dom0/qvm-core/qubes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 5ee8b430..d6f58bfc 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -2159,7 +2159,7 @@ class QubesHVm(QubesVm): @property def stubdom_xid(self): - if not self.is_running(): + if self.xid < 0: return -1 return int(xs.read('', '/local/domain/%d/image/device-model-domid' % self.xid))