Skip to content

Commit c323c0e

Browse files
aprzywaravikivity
authored andcommitted
KVM: Ignore PCI ECS I/O enablement
Linux guests will try to enable access to the extended PCI config space via the I/O ports 0xCF8/0xCFC on AMD Fam10h CPU. Since we (currently?) don't use ECS, simply ignore write and read attempts. Signed-off-by: Andre Przywara <[email protected]> Signed-off-by: Avi Kivity <[email protected]>
1 parent ae8c1c4 commit c323c0e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

arch/x86/kvm/x86.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -844,6 +844,8 @@ int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data)
844844
return 1;
845845
}
846846
break;
847+
case MSR_AMD64_NB_CFG:
848+
break;
847849
case MSR_IA32_DEBUGCTLMSR:
848850
if (!data) {
849851
/* We support the non-activated case already */
@@ -1049,6 +1051,7 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata)
10491051
case MSR_P6_EVNTSEL1:
10501052
case MSR_K7_EVNTSEL0:
10511053
case MSR_K8_INT_PENDING_MSG:
1054+
case MSR_AMD64_NB_CFG:
10521055
data = 0;
10531056
break;
10541057
case MSR_MTRRcap:

0 commit comments

Comments
 (0)