From 2ff6aa456ee62edeaf182010f775380e1f82fd12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Thu, 16 Jun 2016 21:08:44 +0200 Subject: [PATCH] Provide fake CPUs count and total memory in offline mode --- qubes/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/qubes/app.py b/qubes/app.py index 85792b36..30570e6e 100644 --- a/qubes/app.py +++ b/qubes/app.py @@ -248,6 +248,8 @@ class QubesHost(object): def memory_total(self): '''Total memory, in kbytes''' + if self.app.vmm.offline_mode: + return 2**64-1 self._fetch() return self._total_mem @@ -256,6 +258,9 @@ class QubesHost(object): def no_cpus(self): '''Number of CPUs''' + if self.app.vmm.offline_mode: + return 42 + self._fetch() return self._no_cpus