Skip to content

QEMU memory hot unplug support

Zhu Guihua qemu-devel 6 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. v7 Latest8 patches 3 repliesApplied
  2. v67 of 8 patches 11 repliesSuperseded
  3. v57 patches 10 repliesSuperseded
Earlier versions · 3
VersionPostedPatchesRepliesStatus
v46 patches18 repliesSuperseded
v310 patches15 repliesApplied
v212 patches7 repliesSuperseded

Changes in v7 from the cover letter

-drop to throttle event QAPI_EVENT_MEM_UNPLUG_ERR

Patches in v7 Applied

#Subject and filesSizeRepliesApplied
1/8docs: update documentation for memory hot unplugdocs/memory-hotplug.txt docs/specs/acpi_mem_hotplug.txt+61 -40 replies
2/8acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatushw/acpi/memory_hotplug.c+28 -60 replies
3/8acpi, mem-hotplug: add unplug request cb for memory devicehw/acpi/ich9.c hw/acpi/memory_hotplug.c hw/acpi/piix4.c +2 more+68 -50 replies
4/8acpi, mem-hotplug: add unplug cb for memory devicehw/acpi/ich9.c hw/acpi/memory_hotplug.c hw/acpi/piix4.c +2 more+64 -60 replies
5/8acpi: extend aml_field() to support UpdateRulehw/acpi/aml-build.c hw/i386/acpi-build.c include/hw/acpi/aml-build.h+19 -80 replies
6/8acpi: fix "Memory device control fields" registerdocs/specs/acpi_mem_hotplug.txt hw/i386/acpi-build.c+5 -20 replies
7/8acpi: add hardware implementation for memory hot unplugdocs/specs/acpi_mem_hotplug.txt hw/acpi/memory_hotplug.c hw/core/qdev.c +5 more+61 -50 replies
8/8qmp-event: add event notification for memory hot unplug errordocs/qmp/qmp-events.txt hw/acpi/memory_hotplug.c qapi/event.json +1 more+41 -13 replies

Reviews trailers per patch

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

PatchIgor Mammedov
1/8R-b
2/8R-b
3/8R-b
4/8R-b
5/8R-b
6/8R-b
7/8R-b
8/8R-b

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

Read the v7 thread

Cover letter [Qemu-devel] [PATCH v7 0/8] QEMU memory hot unplug support

This patchset adds support to hot unplug memory.

Memory hot unplug is complicated multi-stage process. Unplug request callback sends remove request. After guest os processes ejection request, OSPM will execute _EJ0 to signal qemu that a device eject will be to occur. Then qemu will call unplug callback to eject the device.

v7:
-drop to throttle event QAPI_EVENT_MEM_UNPLUG_ERR

v6:
-improve documentation of memory hot unplug
-add trace event for device deletion
-put fix about "Memory device control fields" register in a separate patch

v5:
-reorganize the patchset
-add documentation to understand patch easily
-add MEMORY_SLOT_EJECT for initiating device eject
-add support to send qmp event to notify mgmt about memory unplug error

v4:
-reorganize the patchset
-drop the new API acpi_send_gpe_event()
-update ssdt-mem

v3:
-commit message changes
-reorganize the patchset, squash and separate some patches -update specs about acpi_mem_hotplug
-first cleanup external state, then un-map and un-register memory device

v2:
-do a generic for acpi to send gpe event -unparent object by PC_MACHINE
-update description in acpi_mem_hotplug.txt -combine the last two patches in the last version -cleanup external state in acpi_memory_unplug_cb

Tang Chen (3):
acpi, mem-hotplug: add acpi_memory_slot_status() to get MemStatus acpi, mem-hotplug: add unplug request cb for memory device acpi, mem-hotplug: add unplug cb for memory device

Zhu Guihua (5):
docs: update documentation for memory hot unplug
acpi: extend aml_field() to support UpdateRule
acpi: fix "Memory device control fields" register
acpi: add hardware implementation for memory hot unplug
qmp-event: add event notification for memory hot unplug error

 docs/memory-hotplug.txt           | 23 ++++++++--
 docs/qmp/qmp-events.txt           | 17 +++++++
 docs/specs/acpi_mem_hotplug.txt   | 58 +++++++++++++++++++++--
 hw/acpi/aml-build.c               |  4 +-
 hw/acpi/ich9.c                    | 19 ++++++--
 hw/acpi/memory_hotplug.c          | 96 ++++++++++++++++++++++++++++++++++++---
 hw/acpi/piix4.c                   | 17 +++++--
 hw/core/qdev.c                    |  2 +-
 hw/i386/acpi-build.c              | 25 ++++++++--
 hw/i386/acpi-dsdt-mem-hotplug.dsl | 13 +++++-
 hw/i386/pc.c                      | 62 +++++++++++++++++++++++--
 include/hw/acpi/aml-build.h       | 10 +++-
 include/hw/acpi/memory_hotplug.h  | 12 +++++
 include/hw/acpi/pc-hotplug.h      |  3 ++
 include/hw/qdev-core.h            |  1 +
 qapi/event.json                   | 14 ++++++
 trace-events                      |  4 ++
 17 files changed, 345 insertions(+), 35 deletions(-)
Signature · 1 line
1.9.3