Re: [PATCH v5 01/11] memory: Introduce RamDiscardMgr for RAM memory regions

2021-02-16 Thread David Hildenbrand
+/** + * @is_populated: + * + * Check whether the given range within the #MemoryRegion is completely + * populated (i.e., no parts are currently discarded). There are no + * alignment requirements for the range. + * + * @rdm: the #RamDiscardMgr + * @mr: the #Mem

[PATCH v5 01/11] memory: Introduce RamDiscardMgr for RAM memory regions

2021-01-21 Thread David Hildenbrand
We have some special RAM memory regions (managed by virtio-mem), whereby the guest agreed to only use selected memory ranges. "unused" parts are discarded so they won't consume memory - to logically unplug these memory ranges. Before the VM is allowed to use such logically unplugged memory again, c