From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Markus Rechberger" Subject: [PATCH] discard MSR writes Date: Mon, 19 Nov 2007 20:08:05 +0100 Message-ID: <4741DF15.20708@amd.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary=------------020001020004010303090101 To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org, Joerg.Roedel-5C7GfCeVMHo@public.gmane.org Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org This is a multi-part message in MIME format. --------------020001020004010303090101 Content-Type: text/plain; charset=iso-8859-1; format=flowed Content-Transfer-Encoding: 7bit this patch discards MSR writes to the Performance Event-Select Registers, this is the first issue why vista seems to fail although now vista ends up in an endless loop a bit later. Qemu currently also discards those writes. Signed-off-by: Joerg Roedel Signed-off-by: Markus Rechberger --------------020001020004010303090101 Content-Type: text/plain; name=MSR_K7_EVNTSEL.diff Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename=MSR_K7_EVNTSEL.diff diff --git a/drivers/kvm/svm.c b/drivers/kvm/svm.c index 1c3cc3e..1f34501 100644 --- a/drivers/kvm/svm.c +++ b/drivers/kvm/svm.c @@ -1143,6 +1143,12 @@ static int svm_set_msr(struct kvm_vcpu *vcpu, unsigned ecx, u64 data) case MSR_SYSCALL_MASK: svm->vmcb->save.sfmask = data; break; + case MSR_K7_EVNTSEL0: + case MSR_K7_EVNTSEL1: + case MSR_K7_EVNTSEL2: + case MSR_K7_EVNTSEL3: + /* discard those writes for now, required by vista 64bit */ + break; #endif case MSR_IA32_SYSENTER_CS: svm->vmcb->save.sysenter_cs = data; --------------020001020004010303090101 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ --------------020001020004010303090101 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ kvm-devel mailing list kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org https://lists.sourceforge.net/lists/listinfo/kvm-devel --------------020001020004010303090101--