From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MdlVP-0005Mb-K9 for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:11 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MdlVJ-0005II-TG for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:10 -0400 Received: from [199.232.76.173] (port=55341 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MdlVJ-0005I2-2u for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:05 -0400 Received: from tx2ehsobe002.messaging.microsoft.com ([65.55.88.12]:48634 helo=TX2EHSOBE004.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MdlVI-0001x3-Ml for qemu-devel@nongnu.org; Wed, 19 Aug 2009 09:47:04 -0400 From: Andre Przywara Date: Wed, 19 Aug 2009 15:42:39 +0200 Message-ID: <1250689362-11067-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 0/3]: Introduce multi-core and multi-thread support for guests List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: anthony@codemonkey.ws Cc: Andre Przywara , qemu-devel@nongnu.org Hi, currently QEMU's -smp option only injects multiple CPU sockets into the guest. Some operating systems(TM) restrict the number of "real" CPU sockets for licensing reasons, but allow multi-core CPUs. This patch extends the -smp option to let the user specify a topology: -smp [,cores=][,threads=] [,sockets=][,maxcpus=] The is the legacy number of virtual CPUs QEMU emulates. If any of the cores, threads or sockets option is given, this value can be omitted. Missing values are calculated to fulfill: smp_value = nrsockets * nrcores * nrthreads Where in doubt it will favor multiple sockets over multiple cores over multiple threads (to mimic the current behavior). The entered values will be propagated to the CPUID emulation, where the corresponding bits will be set (both for Intel and AMD processors). These patches are againt QEMU HEAD, but should apply against qemu-kvm, too. Please review, comment and apply! Thanks, Andre. Signed-off-by: Andre Przywara -- 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: Thomas M. McCoy; Giuliano Meroni Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen Registergericht Muenchen, HRB Nr. 43632