qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM


From: Gleb Natapov
Subject: Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM
Date: Tue, 9 Nov 2010 08:55:01 +0200

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 via email to

[Prev in Thread] Current Thread [Next in Thread]