linux_dsm_epyc7002/arch/x86/kvm/vmx
Vitaly Kuznetsov d574c539c3 KVM: x86: move MSR_IA32_PERF_CAPABILITIES emulation to common x86 code
state_test/smm_test selftests are failing on AMD with:
"Unexpected result from KVM_GET_MSRS, r: 51 (failed MSR was 0x345)"

MSR_IA32_PERF_CAPABILITIES is an emulated MSR on Intel but it is not
known to AMD code, we can move the emulation to common x86 code. For
AMD, we basically just allow the host to read and write zero to the MSR.

Fixes: 27461da310 ("KVM: x86/pmu: Support full width counting")
Suggested-by: Jim Mattson <jmattson@google.com>
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Message-Id: <20200710152559.1645827-1-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2020-07-10 12:52:56 -04:00
..
capabilities.h KVM: x86/pmu: Support full width counting 2020-06-01 04:26:09 -04:00
evmcs.c KVM: eVMCS: check if nesting is enabled 2020-04-23 09:04:56 -04:00
evmcs.h KVM: nVMX: properly handle errors in nested_vmx_handle_enlightened_vmptrld() 2020-03-16 18:19:30 +01:00
nested.c KVM: x86: Rename cpuid_update() callback to vcpu_after_set_cpuid() 2020-07-09 07:08:18 -04:00
nested.h KVM: nVMX: Remove unused 'ops' param from nested_vmx_hardware_setup() 2020-05-15 12:26:24 -04:00
ops.h x86/kvm/vmx: Move guest enter/exit into .noinstr.text 2020-07-09 07:08:40 -04:00
pmu_intel.c KVM: x86: move MSR_IA32_PERF_CAPABILITIES emulation to common x86 code 2020-07-10 12:52:56 -04:00
vmcs12.c KVM: nVMX: Remove non-functional "support" for CR3 target values 2020-04-21 09:13:09 -04:00
vmcs12.h KVM: nVMX: Remove non-functional "support" for CR3 target values 2020-04-21 09:13:09 -04:00
vmcs_shadow_fields.h KVM: Fix some out-dated function names in comment 2020-01-21 13:57:27 +01:00
vmcs.h KVM: VMX: Add helpers to identify interrupt type from intr_info 2020-06-15 12:12:20 -04:00
vmenter.S x86/kvm/vmx: Move guest enter/exit into .noinstr.text 2020-07-09 07:08:40 -04:00
vmx.c x86/kvm/vmx: Use native read/write_cr2() 2020-07-09 07:08:42 -04:00
vmx.h kvm: x86: Move last_cpu into kvm_vcpu_arch as last_vmentry_cpu 2020-07-08 16:21:45 -04:00