qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: xscript@gmx.net (Lluís)
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM
Date: Mon, 08 Nov 2010 23:30:52 +0100	[thread overview]
Message-ID: <87fwvb1m8z.fsf@ginnungagap.bsc.es> (raw)
In-Reply-To: <20101108220942.GM12909@caffeine.csclub.uwaterloo.ca> (Lennart Sorensen's message of "Mon, 8 Nov 2010 17:09:42 -0500")

Lennart Sorensen writes:

> On Mon, Nov 08, 2010 at 10:57:19PM +0100, Lluís wrote:
>> Well, thre's nothing more to add than the contents in the subject.
>> 
>> I tried booting up with -smp 2, and /proc/cpuinfo on the linux guest
>> only return one CPU, while booting with "-smp 2 -enable-kvm" shows 2
>> CPUs.

> I was under the impression qemu didn't emulate SMP.  KVM on the other
> hand does support running on real SMP hardware.  It doesn't have to
> emulate SMP after all.

Well, I thought it did when I saw the "-smp" option, and it does in fact
create multiple CPUState objects, as if the "extra" cpus where
unplugged.

In fact, cpus.c:cpu_exec_all does indeed loop through all the CPUState
objects, calling qemu_cpu_exec on each.

Lluis

-- 
 "And it's much the same thing with knowledge, for whenever you learn
 something new, the whole world becomes that much richer."
 -- The Princess of Pure Reason, as told by Norton Juster in The Phantom
 Tollbooth

  reply	other threads:[~2010-11-08 22:30 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-08 21:57 [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM Lluís
2010-11-08 22:09 ` Lennart Sorensen
2010-11-08 22:30   ` Lluís [this message]
2010-11-09  6:55     ` Gleb Natapov
2010-11-09 13:24       ` Lluís

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=87fwvb1m8z.fsf@ginnungagap.bsc.es \
    --to=xscript@gmx.net \
    --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).