linux/arch/x86/kvm/vmx
Like Xu 4f1fa2a1bb KVM: x86/pmu: Limit the maximum number of supported Intel GP counters
The Intel Architectural IA32_PMCx MSRs addresses range allows for a
maximum of 8 GP counters, and KVM cannot address any more.  Introduce a
local macro (named KVM_INTEL_PMC_MAX_GENERIC) and use it consistently to
refer to the number of counters supported by KVM, thus avoiding possible
out-of-bound accesses.

Suggested-by: Jim Mattson <jmattson@google.com>
Signed-off-by: Like Xu <likexu@tencent.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-Id: <20220919091008.60695-2-likexu@tencent.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-11-09 12:26:53 -05:00
..
capabilities.h KVM: VMX: Fold vmx_supported_debugctl() into vcpu_supported_debugctl() 2022-11-02 13:18:18 -04:00
evmcs.c KVM: VMX: Get rid of eVMCS specific VMX controls sanitization 2022-09-26 12:02:48 -04:00
evmcs.h KVM: VMX: Get rid of eVMCS specific VMX controls sanitization 2022-09-26 12:02:48 -04:00
nested.c The first batch of KVM patches, mostly covering x86, which I 2022-10-09 09:39:55 -07:00
nested.h KVM: nVMX: Use sanitized allowed-1 bits for VMX control MSRs 2022-09-26 12:03:00 -04:00
pmu_intel.c KVM: x86/pmu: Limit the maximum number of supported Intel GP counters 2022-11-09 12:26:53 -05:00
posted_intr.c KVM: nVMX: clean up posted interrupt descriptor try_cmpxchg 2022-06-24 11:45:45 -04:00
posted_intr.h KVM: VMX: enable IPI virtualization 2022-06-08 04:47:37 -04:00
run_flags.h KVM: VMX: Prevent guest RSB poisoning attacks with eIBRS 2022-06-27 10:34:00 +02:00
sgx.c KVM: VMX: Inject #PF on ENCLS as "emulated" #PF 2022-09-26 12:03:07 -04:00
sgx.h KVM: VMX: Enable SGX virtualization for SGX1, SGX2 and LC 2021-04-20 04:18:56 -04:00
vmcs12.c KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05:00
vmcs12.h KVM: nVMX: Rename vmcs_to_field_offset{,_table} 2022-01-28 07:38:26 -05: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: Detect Tertiary VM-Execution control when setup VMCS config 2022-06-08 04:47:18 -04:00
vmenter.S KVM: x86: use a separate asm-offsets.c file 2022-11-09 12:10:17 -05:00
vmx_ops.h KVM: VMX: Do not declare vmread_error() asmlinkage 2022-09-26 12:02:35 -04:00
vmx.c KVM: VMX: Ignore guest CPUID for host userspace writes to DEBUGCTL 2022-11-02 13:18:44 -04:00
vmx.h KVM: VMX: Add missing CPU based VM execution controls to vmcs_config 2022-09-26 12:02:56 -04:00