From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FOLVO-0001cM-9h for qemu-devel@nongnu.org; Tue, 28 Mar 2006 16:13:34 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FOLVM-0001Yc-1v for qemu-devel@nongnu.org; Tue, 28 Mar 2006 16:13:33 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FOLVL-0001YU-Uc for qemu-devel@nongnu.org; Tue, 28 Mar 2006 16:13:31 -0500 Received: from [84.96.92.55] (helo=smtP.neuf.fr) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FOLX9-00045Q-TR for qemu-devel@nongnu.org; Tue, 28 Mar 2006 16:15:24 -0500 Received: from [84.99.204.113] by sp604004mt.gpm.neuf.ld (Sun Java System Messaging Server 6.2-4.03 (built Sep 22 2005)) with ESMTP id <0IWU001YIWAGDDZ0@sp604004mt.gpm.neuf.ld> for qemu-devel@nongnu.org; Tue, 28 Mar 2006 23:13:29 +0200 (CEST) Date: Tue, 28 Mar 2006 23:12:23 +0200 From: Fabrice Bellard Subject: Re: [Qemu-devel] kqemu version 1.3.0pre5 In-reply-to: Message-id: <4429A6B7.3090606@bellard.org> MIME-version: 1.0 Content-type: text/plain; charset=us-ascii; format=flowed Content-transfer-encoding: 7BIT References: <44285974.9040003@bellard.org> <20060328184037.GJ8186@suse.de> Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Ed Swierk wrote: > On 3/28/06, Jens Axboe wrote: > >>>monitor/mwait feature present. >>>using mwait in idle threads. >> >>[snip] >> >> >>>invalid operand: 0000 [#1] >>>Modules linked in: >>>CPU: 0 >>>EIP: 0060:[] Not tainted VLI >>>EFLAGS: 00010246 (2.6.14-1.1656_FC4) >>>EIP is at mwait_idle+0x2f/0x41 >> >>I don't think qemu supports PNI, which includes the monitor/mwait >>additions. I wonder why Linux detects that. You can probably get around >>it for now by either passing idle=poll as a boot parameter, or compile >>your kernel for plain i586 for instance. > > > It seems that with -kernel-kqemu, the guest kernel is seeing the CPUID > of the host machine rather than the one normally generated by qemu. > > The workarounds you suggest do work--thanks for your help. However, > ideally kqemu would trap the CPUID instruction and mask the feature > bits for unsupported CPU features. The problem is that it is not possible to trap on the CPUID instruction :-( So the only possible patch is to support PNI in QEMU. For monitor/mwait for example, doing nops should suffice... Fabrice.