Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MgxDv-0002EH-W5 for qemu-devel@nongnu.org; Fri, 28 Aug 2009 04:54:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MgxDr-0002Bl-Pw for qemu-devel@nongnu.org; Fri, 28 Aug 2009 04:54:19 -0400 Received: from [199.232.76.173] (port=47381 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MgxDr-0002BS-Ki for qemu-devel@nongnu.org; Fri, 28 Aug 2009 04:54:15 -0400 Received: from va3ehsobe001.messaging.microsoft.com ([216.32.180.11]:41425 helo=VA3EHSOBE001.bigfish.com) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_ARCFOUR_MD5:16) (Exim 4.60) (envelope-from ) id 1MgxDr-0002fL-9r for qemu-devel@nongnu.org; Fri, 28 Aug 2009 04:54:15 -0400 From: Andre Przywara Date: Fri, 28 Aug 2009 10:49:57 +0200 Message-ID: <1251449397-1751-1-git-send-email-andre.przywara@amd.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH] add documentation for multi-core features 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 extend QEMU's internal help and man page to cover the recently added multi-core feature. Signed-off-by: Andre Przywara --- qemu-options.hx | 14 +++++++++++--- 1 files changed, 11 insertions(+), 3 deletions(-) Sorry, missed that part, that should have been in the original patch series. Regards, Andre. diff --git a/qemu-options.hx b/qemu-options.hx index 0c2b310..ce38a3b 100644 --- a/qemu-options.hx +++ b/qemu-options.hx @@ -39,15 +39,23 @@ Select CPU model (-cpu ? for list and additional feature selection) ETEXI DEF("smp", HAS_ARG, QEMU_OPTION_smp, - "-smp n[,maxcpus=cpus]\n" + "-smp n[,maxcpus=cpus][,cores=cores][,threads=threads][,sockets=sockets]\n" " set the number of CPUs to 'n' [default=1]\n" " maxcpus= maximum number of total cpus, including\n" - " offline CPUs for hotplug etc.\n") + " offline CPUs for hotplug etc.\n" + " cores= number of CPU cores on one socket\n" + " threads= number of threads on one CPU core\n" + " sockets= number of discrete sockets in the system\n") STEXI -@item -smp @var{n} +@item -smp @var{n}[,cores=@var{cores}][,threads=@var{threads}][,sockets=@var{sockets}][,maxcpus=@var{maxcpus}] Simulate an SMP system with @var{n} CPUs. On the PC target, up to 255 CPUs are supported. On Sparc32 target, Linux limits the number of usable CPUs to 4. +For the PC target, the number of @var{cores} per socket, the number +of @var{threads} per cores and the total number of @var{sockets} can be +specified. Missing values will be computed. If any on the three values is +given, the total number of CPUs @var{n} can be omitted. @var{maxcpus} +specifies the maximum number of hotpluggable CPUs. ETEXI DEF("numa", HAS_ARG, QEMU_OPTION_numa, -- 1.6.1.3