Browse Source

app: fix get_free_xen_memory function

It's app.vmm.xc, not app.xc. Since nobody have noticed it, this function
might be unused...
Marek Marczykowski-Górecki 4 năm trước cách đây
mục cha
commit
5908ab1568
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      qubes/app.py

+ 1 - 1
qubes/app.py

@@ -309,7 +309,7 @@ class QubesHost:
         :raises NotImplementedError: when not under Xen
         """
         try:
-            self._physinfo = self.app.xc.physinfo()
+            self._physinfo = self.app.vmm.xc.physinfo()
         except AttributeError:
             raise NotImplementedError('This function requires Xen hypervisor')
         return int(self._physinfo['free_memory'])