From patchwork Mon Jun 15 07:55:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amit Shah X-Patchwork-Id: 30252 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n5F7uMv9007136 for ; Mon, 15 Jun 2009 07:56:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751384AbZFOHzd (ORCPT ); Mon, 15 Jun 2009 03:55:33 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750742AbZFOHzd (ORCPT ); Mon, 15 Jun 2009 03:55:33 -0400 Received: from mx2.redhat.com ([66.187.237.31]:40887 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750767AbZFOHzc (ORCPT ); Mon, 15 Jun 2009 03:55:32 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n5F7tZf5004744 for ; Mon, 15 Jun 2009 03:55:35 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n5F7tY34026560; Mon, 15 Jun 2009 03:55:34 -0400 Received: from localhost (vpn-12-163.rdu.redhat.com [10.11.12.163]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n5F7tWCC000926; Mon, 15 Jun 2009 03:55:33 -0400 From: Amit Shah To: avi@redhat.com Cc: kvm@vger.kernel.org, Amit Shah Subject: [PATCH] KVM: x86: Ignore reads to K7 EVNTSEL MSRs Date: Mon, 15 Jun 2009 13:25:34 +0530 Message-Id: <1245052534-10221-1-git-send-email-amit.shah@redhat.com> X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org In commit 7fe29e0faacb650d31b9e9f538203a157bec821d we ignored the reads to the P6 EVNTSEL MSRs. That fixed crashes on Intel machines. Ignore the reads to K7 EVNTSEL MSRs as well to fix this on AMD hosts. This fixes Kaspersky antivirus crashing Windows guests on AMD hosts. Signed-off-by: Amit Shah --- arch/x86/kvm/x86.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1b91ea7..c5b44c9 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -957,6 +957,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata) case MSR_VM_HSAVE_PA: case MSR_P6_EVNTSEL0: case MSR_P6_EVNTSEL1: + case MSR_K7_EVNTSEL0: data = 0; break; case MSR_MTRRcap: