All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: Ignore reads to K7 EVNTSEL MSRs
@ 2009-06-15  7:55 Amit Shah
  2009-06-15 12:38 ` Avi Kivity
  0 siblings, 1 reply; 2+ messages in thread
From: Amit Shah @ 2009-06-15  7:55 UTC (permalink / raw)
  To: avi; +Cc: kvm, Amit Shah

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 <amit.shah@redhat.com>
---
 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:
-- 
1.6.2.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] KVM: x86: Ignore reads to K7 EVNTSEL MSRs
  2009-06-15  7:55 [PATCH] KVM: x86: Ignore reads to K7 EVNTSEL MSRs Amit Shah
@ 2009-06-15 12:38 ` Avi Kivity
  0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2009-06-15 12:38 UTC (permalink / raw)
  To: Amit Shah; +Cc: kvm

On 06/15/2009 10:55 AM, Amit Shah wrote:
> 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.
>    

Applied, thanks.

-- 
error compiling committee.c: too many arguments to function


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-06-15 12:38 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-06-15  7:55 [PATCH] KVM: x86: Ignore reads to K7 EVNTSEL MSRs Amit Shah
2009-06-15 12:38 ` Avi Kivity

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.