|
From: | Paolo Bonzini |
Subject: | Re: [PATCH v6 01/12] memory: Introduce RamDiscardMgr for RAM memory regions |
Date: | Tue, 23 Feb 2021 16:03:30 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.7.0 |
On 23/02/21 11:50, David Hildenbrand wrote:
However, I do agree that the notifier should work with MemoryRegionSection - this will make the "client" code much easier.The register()/replay_populate() mechanism should consume a MemoryRegionSection to work on, and call the listener via (adjusted) MemoryRegionSection.Maybe I'm even able to simplify/get rid of the discard_all() callback.
Good, thanks for trying and finding the best of both worlds. Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |