All of lore.kernel.org
 help / color / mirror / Atom feed
From: Alexander Graf <agraf@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: Andre Przywara <andre.przywara@amd.com>,
	anthony@codemonkey.ws, qemu-devel@nongnu.org,
	kvm@vger.kernel.org
Subject: Re: [RFC] allow multi-core guests: introduce cores= option to -cpu
Date: Sun, 5 Jul 2009 15:23:27 +0200	[thread overview]
Message-ID: <DB13E24C-654D-4752-884E-D951A42D4CB5@suse.de> (raw)
In-Reply-To: <4A4F745C.8010001@redhat.com>


On 04.07.2009, at 17:25, Avi Kivity wrote:

> 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.

I actually think putting this in -smp makes more sense. -cpu really  
shouldn't need to be touched by normal users and as long as you can  
either -cpu host or -cpu safe that should be enough.

But then again maybe we should replace -smp with something more useful  
like -numa where you'd then specify #CPUs, #cores, mem-cpu connection,  
etc.

Alex


WARNING: multiple messages have this Message-ID (diff)
From: Alexander Graf <agraf@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: Andre Przywara <andre.przywara@amd.com>,
	qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: [RFC] allow multi-core guests: introduce cores= option to -cpu
Date: Sun, 5 Jul 2009 15:23:27 +0200	[thread overview]
Message-ID: <DB13E24C-654D-4752-884E-D951A42D4CB5@suse.de> (raw)
In-Reply-To: <4A4F745C.8010001@redhat.com>


On 04.07.2009, at 17:25, Avi Kivity wrote:

> 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.

I actually think putting this in -smp makes more sense. -cpu really  
shouldn't need to be touched by normal users and as long as you can  
either -cpu host or -cpu safe that should be enough.

But then again maybe we should replace -smp with something more useful  
like -numa where you'd then specify #CPUs, #cores, mem-cpu connection,  
etc.

Alex

  reply	other threads:[~2009-07-05 13:23 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
2009-07-04 15:25   ` [Qemu-devel] " Avi Kivity
2009-07-05 13:23   ` Alexander Graf [this message]
2009-07-05 13:23     ` 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=DB13E24C-654D-4752-884E-D951A42D4CB5@suse.de \
    --to=agraf@suse.de \
    --cc=andre.przywara@amd.com \
    --cc=anthony@codemonkey.ws \
    --cc=avi@redhat.com \
    --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.