From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH] KVM: Don't allow lmsw to clear cr0.pe Date: Thu, 13 May 2010 00:31:24 -0300 Message-ID: <20100513033124.GA4867@amt.cnet> References: <1273613324-31910-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: kvm@vger.kernel.org, Andy Walls To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:18201 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750749Ab0EMEod (ORCPT ); Thu, 13 May 2010 00:44:33 -0400 Content-Disposition: inline In-Reply-To: <1273613324-31910-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, May 12, 2010 at 12:28:44AM +0300, Avi Kivity wrote: > The current lmsw implementation allows the guest to clear cr0.pe, contrary > to the manual, which breaks EMM386.EXE. > > Fix by ORing the old cr0.pe with lmsw's operand. > > Signed-off-by: Avi Kivity > --- > arch/x86/kvm/x86.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) Applied, thanks.