All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH 0/4] add NUMA emulation
@ 2009-03-31 13:28 Andre Przywara
  2009-03-31 13:28 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara
  2009-03-31 14:37 ` [Qemu-devel] Re: [PATCH 0/4] add NUMA emulation Anthony Liguori
  0 siblings, 2 replies; 14+ messages in thread
From: Andre Przywara @ 2009-03-31 13:28 UTC (permalink / raw)
  To: qemu-devel

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

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [Qemu-devel] [PATCH 0/4] v2: add NUMA emulation
@ 2009-04-08 14:50 Andre Przywara
  2009-04-08 14:50 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara
  0 siblings, 1 reply; 14+ messages in thread
From: Andre Przywara @ 2009-04-08 14:50 UTC (permalink / raw)
  To: anthony; +Cc: qemu-devel

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.

^ permalink raw reply	[flat|nested] 14+ messages in thread
* [Qemu-devel] [PATCH 0/4] v3: add NUMA emulation
@ 2009-04-21 11:02 Andre Przywara
  2009-04-21 11:02 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara
  0 siblings, 1 reply; 14+ messages in thread
From: Andre Przywara @ 2009-04-21 11:02 UTC (permalink / raw)
  To: aliguori; +Cc: qemu-devel

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 time with concise descriptions in each
patch. The 64 CPU limit is still persistent for now and will be fixed later.
The command line syntax is the following:
-numa node[,mem=<size>[MG]][,cpus=<from>[-<to>]][,nodeid=<nr>]
Omitting detailed node topology will revert to equal distribution of the
resources over all nodes. Every node has to be named at least with a
"-numa node" stanza.

Please apply!

Regards,
Andre.

-- 
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 

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2009-04-21 11:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-03-31 13:28 [Qemu-devel] [PATCH 0/4] add NUMA emulation Andre Przywara
2009-03-31 13:28 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara
2009-03-31 13:28   ` [Qemu-devel] [PATCH 2/4] add info numa command to monitor Andre Przywara
2009-03-31 13:28     ` [Qemu-devel] [PATCH 3/4] sending NUMA topology to BIOS Andre Przywara
2009-03-31 13:28       ` [Qemu-devel] [PATCH 4/4] add BIOS support for an ACPI SRAT table (needed for NUMA support) Andre Przywara
2009-03-31 13:44         ` [Qemu-devel] " Anthony Liguori
2009-03-31 20:04           ` [Qemu-devel] [PATCH 4/4] add SRAT ACPI table support Andre Przywara
2009-03-31 16:00       ` [Qemu-devel] [PATCH 3/4] sending NUMA topology to BIOS Blue Swirl
2009-03-31 21:33         ` Andre Przywara
2009-03-31 13:42   ` [Qemu-devel] Re: [PATCH 1/4] added -numa cmdline parameter parser Anthony Liguori
2009-03-31 20:34     ` Andre Przywara
2009-03-31 14:37 ` [Qemu-devel] Re: [PATCH 0/4] add NUMA emulation Anthony Liguori
2009-04-08 14:50 [Qemu-devel] [PATCH 0/4] v2: " Andre Przywara
2009-04-08 14:50 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara
2009-04-21 11:02 [Qemu-devel] [PATCH 0/4] v3: add NUMA emulation Andre Przywara
2009-04-21 11:02 ` [Qemu-devel] [PATCH 1/4] added -numa cmdline parameter parser Andre Przywara

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.