Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrZ6r-0001CU-1a for qemu-devel@nongnu.org; Wed, 08 Apr 2009 10:50:37 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrZ6m-00019v-BD for qemu-devel@nongnu.org; Wed, 08 Apr 2009 10:50:36 -0400 Received: from [199.232.76.173] (port=43394 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrZ6m-00019q-6f for qemu-devel@nongnu.org; Wed, 08 Apr 2009 10:50:32 -0400 Received: from wa4ehsobe003.messaging.microsoft.com ([216.32.181.13]:30336 helo=WA4EHSOBE003.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1LrZ6l-0000yv-Rj for qemu-devel@nongnu.org; Wed, 08 Apr 2009 10:50:32 -0400 From: Andre Przywara Date: Wed, 8 Apr 2009 16:50:11 +0200 Message-ID: <1239202215-9206-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/4] v2: 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: anthony@codemonkey.ws Cc: 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 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=[MG]][,cpus=[-]][,nodeid=] 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.