Skip to content

v2: add NUMA emulation

Andre Przywara qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 3 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4added -numa cmdline parameter parsercpu-defs.h exec.c qemu-options.hx +2 more+134 -50 replies
2/4add info numa command to monitormonitor.c+21 -00 replies
3/4sending NUMA topology to BIOShw/fw_cfg.h hw/pc.c+25 -00 replies
4/4add SRAT ACPI table supportbios/rombios32.c+164 -111 reply

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/4] v2: add NUMA emulation

Hi,

the following patches add NUMA emulation to QEMU guests.
Although the ultimate goal is KVM with host side support, these patches are pure QEMU with no host side binding.
This is a reworked version from last week, I fixed some formatting issues and tried to overcome the 64 CPU limit. So far the limit persists, but I moved the node assignment to struct CPUState. Sadly the BIOS uses the struct earlier than the command line parser could write the info into, so the BIOS part has to use the limited uint64_t array for now.
The command line syntax is still the same:
-numa node[,mem=<size>[MG]][,cpus=<from>[-<to>]][,nodeid=<nr>] Patch 1/4 adds the -numa command line parameter and sets a QEMU global array with the memory sizes. The CPU-to-node assignemnt is written into the CPUState. If no specific values for memory and CPUs are
given, all resources will be split equally across all nodes. Patch 2/4 adds an "info numa" command to the monitor to output the current topology. Since NUMA is advertised via static ACPI tables, no changes are possible during runtime.
Patch 3/4 uses the QEMU firmware configuration interfacce to send the NUMA topology to the BIOS, which has to setup the tables. Only one channel is used. Patch 4/4 finally adds the BIOS support, which create the appropriate SRAT table reflecting the given topology.

Please apply!

Thanks and Regards,
Andre.