Skip to content

Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️)

Maciej S. Szmigiero qemu-devel 7 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v8 Latest9 patches 2 repliesIn review
  2. v77 patches 10 repliesSuperseded
  3. v66 patches 15 repliesSuperseded
Earlier versions · 4
VersionPostedPatchesRepliesStatus
v53 patches17 repliesSuperseded
v43 patches2 repliesSuperseded
v33 patches13 repliesSuperseded
v23 patches0 repliesSuperseded

Changes in v8 from the cover letter

* Rebase onto the current QEMU git master now that the David's memslots patch series was merged there.

* Split out the hot-add part of the driver to a separate patch.

* Make "query-hv-balloon-status-report" only return a GenericError.

* Remove "@data" parameter description from "HV_BALLOON_STATUS_REPORT" qapi since the build system complains about it.

* Reformat qapi descriptions according to received review comments.

* Collect David's and Markus' "Reviewed-by" and "Acked-by" tags.

* Fix a memslot name formatting issue.

* Add myself to MAINTAINERS.

Patches in v8 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9memory-device: Support empty memory deviceshw/mem/memory-device.c include/hw/mem/memory-device.h+46 -40 replies
2/9memory-device: Drop size alignment checkhw/mem/memory-device.c+0 -60 replies
3/9Add Hyper-V Dynamic Memory Protocol definitionsinclude/hw/hyperv/dynmem-proto.h+423 -00 replies
4/9Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) baseKconfig.host hw/hyperv/Kconfig hw/hyperv/hv-balloon-internal.h +9 more+1613 -10 replies
5/9Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) hot-add supporthw/hyperv/hv-balloon-our_range_memslots.c hw/hyperv/hv-balloon-our_range_memslots.h hw/hyperv/hv-balloon.c +2 more+878 -60 replies
6/9qapi: Add query-memory-devices support to hv-balloonhw/core/machine-hmp-cmds.c hw/hyperv/hv-balloon.c qapi/machine.json+78 -30 replies
7/9qapi: Add HV_BALLOON_STATUS_REPORT event and its QMP query commandhw/hyperv/hv-balloon.c monitor/monitor.c qapi/machine.json+92 -10 replies
8/9hw/i386/pc: Support hv-balloonhw/i386/Kconfig hw/i386/pc.c+23 -00 replies
9/9MAINTAINERS: Add an entry for Hyper-V Dynamic Memory ProtocolMAINTAINERS+8 -00 replies

Reviews trailers per patch

3 of 9 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchDavid HildenbrandMarkus Armbruster
SeriesA-b
1/9
2/9
3/9A-b
4/9
5/9
6/9R-b A-b
7/9
8/9R-b
9/9

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v8 thread

Cover letter [PATCH v8 0/9] Hyper-V Dynamic Memory Protocol driver (hv-balloon 🎈️)

From: "Maciej S. Szmigiero" <[email protected]>

This is a continuation of the v7 of the patch series located here:
https://lore.kernel.org/qemu-devel/[email protected]/

Changes from v7:
* Rebase onto the current QEMU git master now that the David's memslots patch series was merged there.

* Split out the hot-add part of the driver to a separate patch.

* Make "query-hv-balloon-status-report" only return a GenericError.

* Remove "@data" parameter description from "HV_BALLOON_STATUS_REPORT" qapi since the build system complains about it.

* Reformat qapi descriptions according to received review comments.

* Collect David's and Markus' "Reviewed-by" and "Acked-by" tags.

* Fix a memslot name formatting issue.

* Add myself to MAINTAINERS.

David Hildenbrand (2):
memory-device: Support empty memory devices
memory-device: Drop size alignment check

Maciej S. Szmigiero (7):
Add Hyper-V Dynamic Memory Protocol definitions
Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) base Add Hyper-V Dynamic Memory Protocol driver (hv-balloon) hot-add
support
qapi: Add query-memory-devices support to hv-balloon
qapi: Add HV_BALLOON_STATUS_REPORT event and its QMP query command hw/i386/pc: Support hv-balloon
MAINTAINERS: Add an entry for Hyper-V Dynamic Memory Protocol

 Kconfig.host                              |    3 +
 MAINTAINERS                               |    8 +
 hw/core/machine-hmp-cmds.c                |   15 +
 hw/hyperv/Kconfig                         |   10 +
 hw/hyperv/hv-balloon-internal.h           |   33 +
 hw/hyperv/hv-balloon-our_range_memslots.c |  201 +++
 hw/hyperv/hv-balloon-our_range_memslots.h |  110 ++
 hw/hyperv/hv-balloon-page_range_tree.c    |  228 +++
 hw/hyperv/hv-balloon-page_range_tree.h    |  118 ++
 hw/hyperv/hv-balloon.c                    | 1766 +++++++++++++++++++++
 hw/hyperv/meson.build                     |    1 +
 hw/hyperv/trace-events                    |   18 +
 hw/i386/Kconfig                           |    1 +
 hw/i386/pc.c                              |   22 +
 hw/mem/memory-device.c                    |   49 +-
 include/hw/hyperv/dynmem-proto.h          |  423 +++++
 include/hw/hyperv/hv-balloon.h            |   18 +
 include/hw/mem/memory-device.h            |    7 +-
 meson.build                               |   28 +-
 meson_options.txt                         |    2 +
 monitor/monitor.c                         |    1 +
 qapi/machine.json                         |  101 +-
 scripts/meson-buildoptions.sh             |    3 +
 23 files changed, 3153 insertions(+), 13 deletions(-)
 create mode 100644 hw/hyperv/hv-balloon-internal.h
 create mode 100644 hw/hyperv/hv-balloon-our_range_memslots.c
 create mode 100644 hw/hyperv/hv-balloon-our_range_memslots.h
 create mode 100644 hw/hyperv/hv-balloon-page_range_tree.c
 create mode 100644 hw/hyperv/hv-balloon-page_range_tree.h
 create mode 100644 hw/hyperv/hv-balloon.c
 create mode 100644 include/hw/hyperv/dynmem-proto.h
 create mode 100644 include/hw/hyperv/hv-balloon.h