[PATCH v2 0/3] RISC-V virt MHP support

Björn Töpel posted 3 patches 6 months, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20240521105635.795211-1-bjorn@kernel.org
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Palmer Dabbelt <palmer@dabbelt.com>, Alistair Francis <alistair.francis@wdc.com>, Bin Meng <bmeng.cn@gmail.com>, Weiwei Li <liwei1518@gmail.com>, Daniel Henrique Barboza <dbarboza@ventanamicro.com>, Liu Zhiwei <zhiwei_liu@linux.alibaba.com>, Sunil V L <sunilvl@ventanamicro.com>, "Michael S. Tsirkin" <mst@redhat.com>, David Hildenbrand <david@redhat.com>
hw/riscv/Kconfig           |   5 +
hw/riscv/virt-acpi-build.c |  23 +++++
hw/riscv/virt.c            | 183 ++++++++++++++++++++++++++++++++++++-
hw/virtio/virtio-mem.c     |   5 +-
include/hw/riscv/virt.h    |   6 +-
5 files changed, 218 insertions(+), 4 deletions(-)
[PATCH v2 0/3] RISC-V virt MHP support
Posted by Björn Töpel 6 months, 1 week ago
From: Björn Töpel <bjorn@rivosinc.com>

The RISC-V "virt" machine is currently missing memory hotplugging
support (MHP). This series adds the missing virtio-md, and PC-DIMM
support.

I've include both the ACPI MHP/GED/PC-DIMM, and virtio-md in the same
series. The two patches (virtio-md) are probably less controversial,
and can be pulled separately from the last patch.

The first patch includes MHP that works with DT. The second patch is
basic device memory ACPI SRAT plumbing.

The third patch includes ACPI GED, and ACPI MHP/PC-DIMM support.


Changelog

v1->v2:
 * Cap the maximum number of supported ram slots (Daniel)
 * Split the ACPI parts out from virtio-md patch (Daniel)
 * Allow for max 1G PC-DIMM alignment per ram slot (Daniel)
 * Add missing defined(__riscv__) for virtio-mem code
 * Include PC-DIMM MHP supportin the series
 * Misc code structure changes

Cheers,
Björn


Björn Töpel (3):
  hw/riscv/virt: Add memory hotplugging and virtio-md-pci support
  hw/riscv/virt-acpi-build: Expose device memory in ACPI SRAT
  hw/riscv/virt: Add ACPI GED and PC-DIMM MHP support

 hw/riscv/Kconfig           |   5 +
 hw/riscv/virt-acpi-build.c |  23 +++++
 hw/riscv/virt.c            | 183 ++++++++++++++++++++++++++++++++++++-
 hw/virtio/virtio-mem.c     |   5 +-
 include/hw/riscv/virt.h    |   6 +-
 5 files changed, 218 insertions(+), 4 deletions(-)


base-commit: 01782d6b294f95bcde334386f0aaac593cd28c0d
-- 
2.40.1