Skip to content

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 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4added -numa cmdline parameter parserqemu-options.hx sysemu.h vl.c+124 -52 replies
2/4add info numa command to monitormonitor.c+18 -00 replies
3/4sending NUMA topology to BIOShw/fw_cfg.h hw/pc.c+23 -01 reply
3/4sending NUMA topology to BIOShw/fw_cfg.h hw/pc.c+23 -00 replies
4/4add BIOS support for an ACPI SRAT table (needed for NUMA support)pc-bios/bios-pq/0012_add-SRAT-ACPI-table-support.patch pc-bios/bios-pq/series+308 -01 reply
4/4add SRAT ACPI table supportbios/rombios32.c+164 -110 replies

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] 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 end of last year, I adapted the command line syntax to Anthony's wishes:
-numa node[,mem=<size>[MG]][,cpus=<from>[-<to>]][,nodeid=<nr>]
If we agree to this scheme (which drops mem=from-to and requires at least one -numa node for each NUMA node), I will provide more detailed documentation. Patch 1/4 adds the -numa command line parameter and sets a QEMU global array with the parsed values. 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.

Looking forward to any comments.

Regards,
Andre.

P.S. I hope I have applied to the latest QEMU coding style ;-)

--
Andre Przywara
AMD-Operating System Research Center (OSRC), Dresden, Germany
Tel: +49 351 448 3567 12
----to satisfy European law for business letters:
Advanced Micro Devices GmbH
Karl-Hammerschmidt-Str. 34, 85609 Dornach b. Muenchen
Geschaeftsfuehrer: Jochen Polster; Thomas M. McCoy; Giuliano Meroni
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632