From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934666AbZIEAVT (ORCPT ); Fri, 4 Sep 2009 20:21:19 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934635AbZIEAVK (ORCPT ); Fri, 4 Sep 2009 20:21:10 -0400 Received: from kroah.org ([198.145.64.141]:42135 "EHLO coco.kroah.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934589AbZIEAUv (ORCPT ); Fri, 4 Sep 2009 20:20:51 -0400 X-Mailbox-Line: From gregkh@mini.kroah.org Fri Sep 4 17:14:51 2009 Message-Id: <20090905001451.437985317@mini.kroah.org> User-Agent: quilt/0.48-1 Date: Fri, 04 Sep 2009 17:14:01 -0700 From: Greg KH To: linux-kernel@vger.kernel.org, stable@kernel.org Cc: stable-review@kernel.org, torvalds@linux-foundation.org, akpm@linux-foundation.org, alan@lxorguk.ukuu.org.uk, Amit Shah , avi@redhat.com Subject: [patch 26/71] KVM: x86: Ignore reads to EVNTSEL MSRs References: <20090905001335.106974681@mini.kroah.org> Content-Disposition: inline; filename=kvm-x86-ignore-reads-to-evntsel-msrs.patch In-Reply-To: <20090905001824.GA18171@kroah.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2.6.30-stable review patch. If anyone has any objections, please let us know. ------------------ From: Amit Shah (cherry picked from commit 7fe29e0faacb650d31b9e9f538203a157bec821d) We ignore writes to the performance counters and performance event selector registers already. Kaspersky antivirus reads the eventsel MSR causing it to crash with the current behaviour. Return 0 as data when the eventsel registers are read to stop the crash. Signed-off-by: Amit Shah Signed-off-by: Avi Kivity Signed-off-by: Greg Kroah-Hartman --- arch/x86/kvm/x86.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -898,6 +898,8 @@ int kvm_get_msr_common(struct kvm_vcpu * case MSR_IA32_LASTINTFROMIP: case MSR_IA32_LASTINTTOIP: case MSR_VM_HSAVE_PA: + case MSR_P6_EVNTSEL0: + case MSR_P6_EVNTSEL1: data = 0; break; case MSR_MTRRcap: