dom0/core: get stubdom xid also for paused domains

Especially during HVM startup.
This commit is contained in:
Marek Marczykowski 2012-03-02 02:38:01 +01:00
parent a387393b43
commit d1bd26ebe0

View File

@ -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))