Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) hot-add support
One of advantages of using this protocol over ACPI-based PC DIMM hotplug is that it allows hot-adding memory in much smaller granularity because the ACPI DIMM slot limit does not apply. In order to enable this functionality a new memory backend needs to be created and provided to the driver via the "memdev" parameter. This can be achieved by, for example, adding "-object memory-backend-ram,id=mem1,size=32G" to the QEMU command line and then instantiating the driver with "memdev=mem1" parameter. The device will try to use multiple memslots to cover the memory backend in order to reduce the size of metadata for the not-yet-hot-added part of the memory backend. Co-developed-by:David Hildenbrand <david@redhat.com> Acked-by:
David Hildenbrand <david@redhat.com> Signed-off-by:
Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Showing
- hw/hyperv/hv-balloon-our_range_memslots.c 201 additions, 0 deletionshw/hyperv/hv-balloon-our_range_memslots.c
- hw/hyperv/hv-balloon-our_range_memslots.h 110 additions, 0 deletionshw/hyperv/hv-balloon-our_range_memslots.h
- hw/hyperv/hv-balloon.c 561 additions, 5 deletionshw/hyperv/hv-balloon.c
- hw/hyperv/meson.build 1 addition, 1 deletionhw/hyperv/meson.build
- hw/hyperv/trace-events 5 additions, 0 deletionshw/hyperv/trace-events
hw/hyperv/hv-balloon-our_range_memslots.c
0 → 100644
hw/hyperv/hv-balloon-our_range_memslots.h
0 → 100644
This diff is collapsed.
Please register or sign in to comment