diff --git a/qubes/vm/qubesvm.py b/qubes/vm/qubesvm.py index 81e58d818..5cc90489a 100644 --- a/qubes/vm/qubesvm.py +++ b/qubes/vm/qubesvm.py @@ -2270,10 +2270,12 @@ def create_qdb_entries(self): # TODO: Currently the whole qmemman is quite Xen-specific, so stay with # xenstore for it until decided otherwise - if qmemman_present: + if qmemman_present and self.maxmem: + xs_basedir = f"/local/domain/{self.xid}" + self.app.vmm.xs.write('', + f"{xs_basedir}/memory/meminfo", "") self.app.vmm.xs.set_permissions('', - '/local/domain/{}/memory'.format( - self.xid), + f"{xs_basedir}/memory/meminfo", [{'dom': self.xid}]) self.fire_event('domain-qdb-create')