v2: add NUMA emulation
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest4 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/4 | added -numa cmdline parameter parsercpu-defs.h exec.c qemu-options.hx +2 more | +134 | 0 replies | |
| 2/4 | add info numa command to monitormonitor.c | +21 | 0 replies | |
| 3/4 | sending NUMA topology to BIOShw/ hw/ | +25 | 0 replies | |
| 4/4 | add SRAT ACPI table supportbios/ | +164 | 1 reply |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
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.