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: Lluís
Subject: Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM
Date: Mon, 08 Nov 2010 23:30:52 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

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

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