From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=49750 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PFi6w-00079Y-7P for qemu-devel@nongnu.org; Tue, 09 Nov 2010 01:55:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PFi6i-0000y2-Dc for qemu-devel@nongnu.org; Tue, 09 Nov 2010 01:55:05 -0500 Received: from mx1.redhat.com ([209.132.183.28]:63193) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PFi6i-0000xg-6h for qemu-devel@nongnu.org; Tue, 09 Nov 2010 01:55:04 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oA96t2gh002593 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 9 Nov 2010 01:55:03 -0500 Received: from dhcp-1-237.tlv.redhat.com (dhcp-1-237.tlv.redhat.com [10.35.1.237]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oA96t1Km008220 for ; Tue, 9 Nov 2010 01:55:02 -0500 Date: Tue, 9 Nov 2010 08:55:01 +0200 From: Gleb Natapov Subject: Re: [Qemu-devel] smp: linux guest only sees 1 CPU when not using KVM Message-ID: <20101109065501.GD9036@redhat.com> References: <87lj531nsw.fsf@ginnungagap.bsc.es> <20101108220942.GM12909@caffeine.csclub.uwaterloo.ca> <87fwvb1m8z.fsf@ginnungagap.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <87fwvb1m8z.fsf@ginnungagap.bsc.es> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Mon, Nov 08, 2010 at 11:30:52PM +0100, Llu=C3=ADs wrote: > Lennart Sorensen writes: >=20 > > On Mon, Nov 08, 2010 at 10:57:19PM +0100, Llu=C3=ADs wrote: > >> Well, thre's nothing more to add than the contents in the subject. > >>=20 > >> 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. >=20 > > 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. >=20 > 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. >=20 > In fact, cpus.c:cpu_exec_all does indeed loop through all the CPUState > objects, calling qemu_cpu_exec on each. >=20 Yes. Qemu should emulate smp fine. What "info cpus" in monitor shows? Anything interesting in dmesg? -- Gleb.