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...
This commit is contained in:
Marek Marczykowski-Górecki 2019-10-30 15:46:11 +01:00
parent 361550c621
commit 5908ab1568
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

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