瀏覽代碼

Remove import xen.lowlevel.xc

There is still use of it: QubesHost.get_free_xen_memory and
QubesHost.measure_cpu_usage. Will migrate them to libvirt later (for now
some things will be broken - namely qubes-manager).
Marek Marczykowski-Górecki 11 年之前
父節點
當前提交
bc58ca5edb
共有 1 個文件被更改,包括 0 次插入8 次删除
  1. 0 8
      core/qubes.py

+ 0 - 8
core/qubes.py

@@ -42,7 +42,6 @@ dry_run = False
 
 if not dry_run:
     import libvirt
-    import xen.lowlevel.xc
     import xen.lowlevel.xs
 
 
@@ -139,7 +138,6 @@ class QubesVMMConnection(object):
             # Do not initialize in offline mode
             return
 
-        self._xc = xen.lowlevel.xc.xc()
         self._xs = xen.lowlevel.xs.xs()
         self._libvirt_conn = libvirt.open(defaults['libvirt_uri'])
         if self._libvirt_conn == None:
@@ -164,10 +162,6 @@ class QubesVMMConnection(object):
     def xs(self):
         return self._common_getter('_xs')
 
-    @property
-    def xc(self):
-        return self._common_getter('_xc')
-
 
 ##### VMM global variable definition #####
 
@@ -179,8 +173,6 @@ if not dry_run:
 class QubesHost(object):
     def __init__(self):
         (model, memory, cpus, mhz, nodes, socket, cores, threads) = vmm.libvirt_conn.getInfo()
-        self.physinfo = vmm.xc.physinfo()
-
         self._total_mem = long(memory)*1024
         self._no_cpus = cpus