From: Andre Przywara <andre.przywara@amd.com>
To: anthony@codemonkey.ws
Cc: Andre Przywara <andre.przywara@amd.com>, qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 0/3]: Introduce multi-core and multi-thread support for guests
Date: Wed, 19 Aug 2009 15:42:39 +0200 [thread overview]
Message-ID: <1250689362-11067-1-git-send-email-andre.przywara@amd.com> (raw)
Hi,
currently QEMU's -smp <n> 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 <smp_value>[,cores=<nrcores>][,threads=<nrthreads>]
[,sockets=<nrsockets>][,maxcpus=<max_hotplug_cpus>]
The <smp_value> 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.com>
--
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
next reply other threads:[~2009-08-19 13:47 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-19 13:42 Andre Przywara [this message]
2009-08-19 13:42 ` [Qemu-devel] [PATCH 1/3] extend -smp parsing to include cores= and threads= options Andre Przywara
2009-08-19 13:42 ` [Qemu-devel] [PATCH 2/3] push CPUID level to 4 to allow Intel multicore decoding Andre Przywara
2009-08-20 10:06 ` Avi Kivity
2009-08-20 10:36 ` Andre Przywara
2009-08-20 11:06 ` Avi Kivity
2009-08-20 19:03 ` [Qemu-devel] [PATCH] allow overriding of CPUID level on command line Andre Przywara
2009-08-25 12:21 ` [Qemu-devel] [PATCH 2/3] push CPUID level to 4 to allow Intel multicore decoding Andre Przywara
2009-08-20 19:30 ` Jamie Lokier
2009-08-20 21:35 ` Andre Przywara
2009-08-19 13:42 ` [Qemu-devel] [PATCH 3/3] set CPUID bits to present cores and threads topology Andre Przywara
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1250689362-11067-1-git-send-email-andre.przywara@amd.com \
--to=andre.przywara@amd.com \
--cc=anthony@codemonkey.ws \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).