Skip to content

ACPI memory hotplug: QMP interfaces

Igor Mammedov qemu-devel 2 versions – Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest5 patches 1 replyApplied
  2. v15 patches 8 repliesSuperseded

Changes in v2 from the cover letter

* amended doc comments
* fix spelling/gramar errors in commit messages

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/5qmp: add query-memory-devices commandhw/mem/pc-dimm.c include/hw/mem/pc-dimm.h qapi-schema.json +4 more+138 -00 replies
2/5acpi: introduce TYPE_ACPI_DEVICE_IF interfacehw/acpi/Makefile.objs hw/acpi/acpi_interface.c include/hw/acpi/acpi_dev_interface.h +1 more+90 -00 replies
3/5acpi: implement ospm_status() method for PIIX4/ICH9_LPC deviceshw/acpi/ich9.c hw/acpi/memory_hotplug.c hw/acpi/piix4.c +3 more+56 -00 replies
4/5qmp: add query-acpi-ospm-status commandqapi-schema.json qmp-commands.hx qmp.c+52 -00 replies
5/5qmp: add ACPI_DEVICE_OST event handlingdocs/qmp/qmp-events.txt hw/acpi/memory_hotplug.c include/monitor/monitor.h +1 more+40 -10 replies

Reviews trailers per patch

All 5 patches have a Reviewed-by or Acked-by.

PatchEric Blake
1/5R-b
2/5R-b
3/5R-b
4/5R-b
5/5R-b

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

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/5] ACPI memory hotplug: QMP interfaces

changes since v1:
* amended doc comments
* fix spelling/gramar errors in commit messages

this is implemented on top of PCI tree with
memory hotplug and NUMA seriesi queued there:

Series adds following QMP commands:
- query-memory-devices
- query-acpi-ospm-status
and event:
- ACPI_DEVICE_OST

Which could be used by management tools to query current state of memory devices (implemented only for PCDIMMDevice so far) and a related ACPI view of corresponding status of slots (ACPI Memory Device objects).

git tree for testing:
https://github.com/imammedo/qemu/commits/memory-hotplug-OST-v2

Igor Mammedov (5):
qmp: add query-memory-devices command
acpi: introduce TYPE_ACPI_DEVICE_IF interface
acpi: implement ospm_status() method for PIIX4/ICH9_LPC devices
qmp: add query-acpi-ospm-status command
qmp: add ACPI_DEVICE_OST event handling

 docs/qmp/qmp-events.txt              |   10 ++++
 hw/acpi/Makefile.objs                |    1 +
 hw/acpi/acpi_interface.c             |   15 ++++++
 hw/acpi/ich9.c                       |    7 +++
 hw/acpi/memory_hotplug.c             |   60 ++++++++++++++++++++++-
 hw/acpi/piix4.c                      |   11 ++++
 hw/isa/lpc_ich9.c                    |    3 +
 hw/mem/pc-dimm.c                     |   39 ++++++++++++++
 include/hw/acpi/acpi_dev_interface.h |   43 ++++++++++++++++
 include/hw/acpi/ich9.h               |    3 +
 include/hw/acpi/memory_hotplug.h     |    1 +
 include/hw/mem/pc-dimm.h             |    2 +
 include/monitor/monitor.h            |    1 +
 monitor.c                            |    1 +
 qapi-schema.json                     |   92 ++++++++++++++++++++++++++++++++++
 qmp-commands.hx                      |   49 ++++++++++++++++++
 qmp.c                                |   31 +++++++++++
 stubs/Makefile.objs                  |    1 +
 stubs/qmp_pc_dimm_device_list.c      |    7 +++
 19 files changed, 376 insertions(+), 1 deletions(-)
 create mode 100644 hw/acpi/acpi_interface.c
 create mode 100644 include/hw/acpi/acpi_dev_interface.h
 create mode 100644 stubs/qmp_pc_dimm_device_list.c