From 5908ab1568055601130f57a9b47706952a3a1214 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Wed, 30 Oct 2019 15:46:11 +0100 Subject: [PATCH] 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... --- qubes/app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/app.py b/qubes/app.py index 8b7c9398..1a3f2aed 100644 --- a/qubes/app.py +++ b/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'])