Skip to content

Commit 1fdbd48

Browse files
aprzywaravikivity
authored andcommitted
KVM: ignore reads from AMDs C1E enabled MSR
If the Linux kernel detects an C1E capable AMD processor (K8 RevF and higher), it will access a certain MSR on every attempt to go to halt. Explicitly handle this read and return 0 to let KVM run a Linux guest with the native AMD host CPU propagated to the guest. Signed-off-by: Andre Przywara <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent 8f1589d commit 1fdbd48

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/x86/kvm/x86.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,6 +1038,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
10381038
case MSR_P6_EVNTSEL0:
10391039
case MSR_P6_EVNTSEL1:
10401040
case MSR_K7_EVNTSEL0:
1041+
case MSR_K8_INT_PENDING_MSG:
10411042
data = 0;
10421043
break;
10431044
case MSR_MTRRcap:

0 commit comments

Comments
 (0)