Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Loe1T-0007Q4-5u for qemu-devel@nongnu.org; Tue, 31 Mar 2009 09:28:59 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Loe1N-0007Oo-FO for qemu-devel@nongnu.org; Tue, 31 Mar 2009 09:28:57 -0400 Received: from [199.232.76.173] (port=51906 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Loe1N-0007Ol-8x for qemu-devel@nongnu.org; Tue, 31 Mar 2009 09:28:53 -0400 Received: from outbound-sin.frontbridge.com ([207.46.51.80]:32226 helo=SG2EHSOBE005.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1Loe1M-0004WI-8U for qemu-devel@nongnu.org; Tue, 31 Mar 2009 09:28:52 -0400 From: Andre Przywara Date: Tue, 31 Mar 2009 15:28:53 +0200 Message-ID: <1238506137-9140-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/4] add NUMA emulation Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org 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=[MG]][,cpus=[-]][,nodeid=] 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