From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marcelo Tosatti Subject: Re: [PATCH 0/3] Fix #GP at wrong rip for mov cr instructions Date: Fri, 11 Jun 2010 14:09:37 -0300 Message-ID: <20100611170937.GA6913@amt.cnet> References: <1276178536-10888-1-git-send-email-avi@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Sheng Yang , kvm@vger.kernel.org To: Avi Kivity Return-path: Received: from mx1.redhat.com ([209.132.183.28]:42059 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756453Ab0FKRri (ORCPT ); Fri, 11 Jun 2010 13:47:38 -0400 Content-Disposition: inline In-Reply-To: <1276178536-10888-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, Jun 10, 2010 at 05:02:13PM +0300, Avi Kivity wrote: > Three mov cr instructions fail in a similar way when they fault: the > fault rip points at the next instead of faulting instructions. This > patch set fixes the problem. > > > Avi Kivity (3): > KVM: Fix mov cr0 #GP at wrong instruction > KVM: Fix mov cr4 #GP at wrong instruction > KVM: Fix mov cr3 #GP at wrong instruction > > arch/x86/include/asm/kvm_host.h | 6 +++--- > arch/x86/kvm/mmu.c | 2 +- > arch/x86/kvm/svm.c | 6 +++--- > arch/x86/kvm/vmx.c | 21 +++++++++++++++------ > arch/x86/kvm/x86.c | 32 +++++++------------------------- > 5 files changed, 29 insertions(+), 38 deletions(-) Applied, thanks.