All of lore.kernel.org
 help / color / mirror / Atom feed
From: Avi Kivity <avi@redhat.com>
To: Andre Przywara <andre.przywara@amd.com>
Cc: anthony@codemonkey.ws, qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [RFC] allow multi-core guests: introduce cores= option to -cpu
Date: Sat, 04 Jul 2009 18:25:16 +0300	[thread overview]
Message-ID: <4A4F745C.8010001@redhat.com> (raw)
In-Reply-To: <1246632116-31366-1-git-send-email-andre.przywara@amd.com>

On 07/03/2009 05:41 PM, Andre Przywara wrote:
> Hi,
>
> currently SMP guests happen to see<n>  vCPUs as<n>  different sockets.
> Some guests (Windows comes to mind) have license restrictions and refuse
> to run on multi-socket machines.
> So lets introduce a "cores=" parameter to the -cpu option to let the user
> specify the number of _cores_ the guest should see.
>
> This patch has not been tested with all corner cases, so I just want to
> hear your comments whether
> a) we need such an option  and
> b) you like this particular approach.
>
> Applying this qemu.git patch to qemu-kvm.git fixes Windows SMP boot on
> some versions, I successfully tried up to -smp 16 -cpu host,cores=8 with
> WindowsXP Pro.
>
>    

I thought of using -smp [processors=]2,cores=4,threads=2 (for a total of 
16 threads), but I think it makes more sense with -cpu.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.


WARNING: multiple messages have this Message-ID (diff)
From: Avi Kivity <avi@redhat.com>
To: Andre Przywara <andre.przywara@amd.com>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [RFC] allow multi-core guests: introduce cores= option to -cpu
Date: Sat, 04 Jul 2009 18:25:16 +0300	[thread overview]
Message-ID: <4A4F745C.8010001@redhat.com> (raw)
In-Reply-To: <1246632116-31366-1-git-send-email-andre.przywara@amd.com>

On 07/03/2009 05:41 PM, Andre Przywara wrote:
> Hi,
>
> currently SMP guests happen to see<n>  vCPUs as<n>  different sockets.
> Some guests (Windows comes to mind) have license restrictions and refuse
> to run on multi-socket machines.
> So lets introduce a "cores=" parameter to the -cpu option to let the user
> specify the number of _cores_ the guest should see.
>
> This patch has not been tested with all corner cases, so I just want to
> hear your comments whether
> a) we need such an option  and
> b) you like this particular approach.
>
> Applying this qemu.git patch to qemu-kvm.git fixes Windows SMP boot on
> some versions, I successfully tried up to -smp 16 -cpu host,cores=8 with
> WindowsXP Pro.
>
>    

I thought of using -smp [processors=]2,cores=4,threads=2 (for a total of 
16 threads), but I think it makes more sense with -cpu.


-- 
Do not meddle in the internals of kernels, for they are subtle and quick to panic.

  parent reply	other threads:[~2009-07-04 15:25 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-03 14:41 [RFC] allow multi-core guests: introduce cores= option to -cpu Andre Przywara
2009-07-03 14:41 ` [Qemu-devel] " Andre Przywara
2009-07-03 14:52 ` Samuel Thibault
2009-07-03 14:52   ` [Qemu-devel] " Samuel Thibault
2009-07-03 23:28   ` Andre Przywara
2009-07-03 23:53     ` Samuel Thibault
2009-07-03 23:53       ` [Qemu-devel] " Samuel Thibault
2009-07-03 15:16 ` Brian Jackson
2009-07-03 15:16   ` [Qemu-devel] " Brian Jackson
2009-07-03 22:52   ` Andre Przywara
2009-07-03 22:52     ` [Qemu-devel] " Andre Przywara
2009-07-04  0:04     ` Jamie Lokier
2009-07-04  7:18     ` Gleb Natapov
2009-07-03 15:46 ` [Qemu-devel] " Paul Brook
2009-07-03 15:46   ` Paul Brook
2009-07-03 23:45   ` Andre Przywara
2009-07-04  5:58     ` Paul Brook
2009-07-04 15:25 ` Avi Kivity [this message]
2009-07-04 15:25   ` [Qemu-devel] " Avi Kivity
2009-07-05 13:23   ` Alexander Graf
2009-07-05 13:23     ` [Qemu-devel] " Alexander Graf
2009-07-05 14:53     ` Avi Kivity
2009-07-05 14:53       ` [Qemu-devel] " Avi Kivity
2009-07-05 15:04       ` Gleb Natapov
2009-07-05 15:04         ` [Qemu-devel] " Gleb Natapov
2009-07-05 15:11         ` Avi Kivity
2009-07-05 15:11           ` [Qemu-devel] " Avi Kivity
2009-07-05 15:11           ` Alexander Graf
2009-07-05 15:11             ` [Qemu-devel] " Alexander Graf
2009-07-05 15:17             ` Avi Kivity
2009-07-05 15:17               ` [Qemu-devel] " Avi Kivity

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=4A4F745C.8010001@redhat.com \
    --to=avi@redhat.com \
    --cc=andre.przywara@amd.com \
    --cc=anthony@codemonkey.ws \
    --cc=kvm@vger.kernel.org \
    --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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.