public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] KVM: x86: Add three MSRs to the list of ignored MSRs
@ 2016-04-14  9:28 Shuai Ruan
  2016-04-14 13:33 ` Radim Krčmář
  0 siblings, 1 reply; 7+ messages in thread
From: Shuai Ruan @ 2016-04-14  9:28 UTC (permalink / raw)
  To: pbonzini, rkrcmar; +Cc: kvm, allen.m.kay

When passthrough the Intel GPU Device (igd) to windows guest,
the idg driver of the guest will read three MSRs:

MSR_NHM_TURBO_RATIO_LIMIT
MSR_PLATFORM_INFO
MSR_PKG_POWER_LIMIT

Windows guest os will crash as kvm will inject a #GP into the guest
if that tries to access unhandled MSRs, so add this three MSRS to
the list of ignored MSRs.

Signed-off-by: Shuai Ruan <shuai.ruan@linux.intel.com>
---
 arch/x86/kvm/x86.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 9b7798c..f00a58e 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -2301,6 +2301,9 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
 	case MSR_IA32_LASTBRANCHTOIP:
 	case MSR_IA32_LASTINTFROMIP:
 	case MSR_IA32_LASTINTTOIP:
+	case MSR_NHM_TURBO_RATIO_LIMIT:
+	case MSR_PLATFORM_INFO:
+	case MSR_PKG_POWER_LIMIT:
 	case MSR_K8_SYSCFG:
 	case MSR_K8_TSEG_ADDR:
 	case MSR_K8_TSEG_MASK:
-- 
1.9.1


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

end of thread, other threads:[~2016-04-19 16:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-14  9:28 [PATCH] KVM: x86: Add three MSRs to the list of ignored MSRs Shuai Ruan
2016-04-14 13:33 ` Radim Krčmář
2016-04-14 14:42   ` Paolo Bonzini
2016-04-14 16:29     ` Radim Krčmář
2016-04-15 10:48       ` Paolo Bonzini
2016-04-15 14:12         ` Radim Krčmář
     [not found]           ` <20160419092025.GA2651@shuai.ruan@linux.intel.com>
2016-04-19 16:10             ` Kay, Allen M

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox