diff options
| author | David Hildenbrand <david@redhat.com> | 2023-09-26 20:57:28 +0200 |
|---|---|---|
| committer | David Hildenbrand <david@redhat.com> | 2023-10-12 14:15:22 +0200 |
| commit | f9716f4b0d6eaee5d0b1ccf428a102e0c148fa30 (patch) | |
| tree | 54c3248b993bfd07c6a580351aa242a84a110ec2 /include/hw/mem/memory-device.h | |
| parent | 759bac673a8de9d6db50b0f96caa7b70cf0d1694 (diff) | |
| download | focaccia-qemu-f9716f4b0d6eaee5d0b1ccf428a102e0c148fa30.tar.gz focaccia-qemu-f9716f4b0d6eaee5d0b1ccf428a102e0c148fa30.zip | |
memory-device: Track required and actually used memslots in DeviceMemoryState
Let's track how many memslots are required by plugged memory devices and how many are currently actually getting used by plugged memory devices. "required - used" is the number of reserved memslots. For now, the number of used and required memslots is always equal, and there are no reservations. This is a preparation for memory devices that want to dynamically consume memslots after initially specifying how many they require -- where we'll end up with reserved memslots. To track the number of used memslots, create a new address space for our device memory and register a memory listener (add/remove) for that address space. Message-ID: <20230926185738.277351-9-david@redhat.com> Reviewed-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'include/hw/mem/memory-device.h')
0 files changed, 0 insertions, 0 deletions