: Fake emulate Intel perfctr MSRs
PATCH 1/1 : Fake emulate Intel perfctr MSRs
Respin of my previous patch to fake emulate the Intel perfctr MSRs. As Sheng Yang pointed out, I didn't need an additional include, and I could use other #define's.
Signed-off-by Chris Lalancette <[email protected]>
arch/x86/kvm/vmx.c +12 -0
@@ -917,6 +917,18 @@ static int vmx_set_msr(struct kvm_vcpu *vcpu, u32 msr_index, u64 data)case MSR_IA32_TIME_STAMP_COUNTER :guest_write_tsc (data);break ; +case MSR_P6_PERFCTR0 : +case MSR_P6_PERFCTR1 : +case MSR_P6_EVNTSEL0 : +case MSR_P6_EVNTSEL1 : +/* +* Just discard all writes to the performance counters; this +* should keep both older linux and windows 64-bit guests +* happy +*/ +pr_unimpl (vcpu,"unimplemented perfctr wrmsr: 0x%x data 0x%llx\n" , msr_index, data); + +break ;default : msr =find_msr_entry (vmx, msr_index);if (msr) {
Avi Kivity
AppliedQuoted 5 lines · Chris Lalancette
Respin of my previous patch to fake emulate the Intel perfctr MSRs. As Sheng Yang pointed out, I didn't need an additional include, and I could use other #define's.
Applied, thanks. Sorry about the delay.
Signature · 1 line
error compiling committee.c: too many arguments to function