]> git.proxmox.com Git - mirror_qemu.git/commit - hw/arm/virt-acpi-build.c
hw/arm/virt-acpi-build: Add PC-DIMM in SRAT
authorShameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Wed, 18 Sep 2019 13:06:28 +0000 (14:06 +0100)
committerMichael S. Tsirkin <mst@redhat.com>
Sat, 5 Oct 2019 21:12:08 +0000 (17:12 -0400)
commit442da7dc77af171b800f4f082d245dadd3c6ed75
treef1a2cd1d3098b5c0ef596216025d10b13776ef85
parentcff51ac978c4fa0b3d0de0fd62d772d9003f123e
hw/arm/virt-acpi-build: Add PC-DIMM in SRAT

Generate Memory Affinity Structures for PC-DIMM ranges.

Also, Linux and Windows need ACPI SRAT table to make memory hotplug
work properly, however currently QEMU doesn't create SRAT table if
numa options aren't present on CLI. Hence add support(>=4.2) to
create numa node automatically (auto_enable_numa_with_memhp) when
QEMU is started with memory hotplug enabled but without '-numa'
options on CLI.

Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20190918130633.4872-7-shameerali.kolothum.thodi@huawei.com>
Acked-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/arm/virt-acpi-build.c
hw/arm/virt.c