From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MJZnF-00035j-DM for qemu-devel@nongnu.org; Wed, 24 Jun 2009 17:14:09 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MJZnA-00032y-L8 for qemu-devel@nongnu.org; Wed, 24 Jun 2009 17:14:08 -0400 Received: from [199.232.76.173] (port=35320 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MJZnA-00032l-Fy for qemu-devel@nongnu.org; Wed, 24 Jun 2009 17:14:04 -0400 Received: from mx2.redhat.com ([66.187.237.31]:33736) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MJZn9-0002QQ-BQ for qemu-devel@nongnu.org; Wed, 24 Jun 2009 17:14:03 -0400 Date: Wed, 24 Jun 2009 23:13:58 +0200 From: Andrea Arcangeli Subject: Re: [Qemu-devel] allow sysenter on 32bit guests running on vmx host Message-ID: <20090624211358.GE15263@random.random> References: <20090623162140.GB4379@random.random> <20090624172934.GG14121@shareable.org> <5b31733c0906241048m2bb9cb72wdc3d8c0e316611f3@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5b31733c0906241048m2bb9cb72wdc3d8c0e316611f3@mail.gmail.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Filip Navara Cc: qemu-devel@nongnu.org On Wed, Jun 24, 2009 at 07:48:55PM +0200, Filip Navara wrote: > On Wed, Jun 24, 2009 at 7:29 PM, Jamie Lokier wrote: > [snip] > > > > > Fix is to set model = 3 so it'll be the duron cpu when kvm runs on > > > amd bare metal (not anymore athlon but userland doesn't see the > > > difference) and it'll be PII that has sysenter functional like all > > > cpus that run KVM have too when on intel bare metal. > > > > But the vendor id is AMD not Intel in this structure, and the PPro > > workaround is Intel-only. > > > > I've checked Linux kernel code, and it only disables the sep feature > > if the vendor is GenuineIntel, on old and current kernels. > > > > So your patch should make no difference to Linux guests. Did you > > check Linux behaviour? Does Windows ignore the vendor id? > > > No, it doesn't ignore the vendor, at least not on NT 5.2 (Windows Server > 2003) and newer kernels. I'm pretty sure it wasn't ignored even in Windows > XP, older systems didn't implement it. Correct, not only windows, skype also doesn't ignore the vendor and it doesn't attempt to run sysenter if running KVM on amd host (or qemu in any amd/intel host). skype crashes because windows on intel ignores sep on 6/2/3 (as well as linux too) and it disables sysenter, but skype runs sysenter in its binary even on 6/2/3 (tracked with windbg).