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.