qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gleb Natapov <gleb@redhat.com>
To: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM
Date: Tue, 9 Nov 2010 08:55:01 +0200	[thread overview]
Message-ID: <20101109065501.GD9036@redhat.com> (raw)
In-Reply-To: <87fwvb1m8z.fsf@ginnungagap.bsc.es>

On Mon, Nov 08, 2010 at 11:30:52PM +0100, Lluís wrote:
> 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.
> 
Yes. Qemu should emulate smp fine. What "info cpus" in monitor shows?
Anything interesting in dmesg?

--
			Gleb.

  reply	other threads:[~2010-11-09  6:55 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
2010-11-09  6:55     ` Gleb Natapov [this message]
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=20101109065501.GD9036@redhat.com \
    --to=gleb@redhat.com \
    --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).