dom0: XC/XL infos for dom0

This commit is contained in:
Marek Marczykowski 2011-06-02 01:20:23 +02:00
parent fac1f7f107
commit cc4df5089d

View File

@ -1589,6 +1589,23 @@ class QubesDom0NetVm(QubesNetVm):
def start(self, debug_console = False, verbose = False):
raise QubesException ("Cannot start Dom0 fake domain!")
def get_xl_dominfo(self):
if dry_run:
return
domains = xl_ctx.list_domains()
for dominfo in domains:
if dominfo.domid == 0:
return dominfo
return None
def get_xc_dominfo(self):
if dry_run:
return
domains = xc.domain_getinfo(0, 1)
return domains[0]
def create_xml_element(self):
return None