Home
last modified time | relevance | path

Searched hist:"1 c2bf8a6b045a6ac4e75a7a07fde70db63e5a380" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/arch/x86/kvm/svm/
H A Dpmu.cdiff 1c2bf8a6b045a6ac4e75a7a07fde70db63e5a380 Fri Jun 02 20:10:55 CDT 2023 Like Xu <likexu@tencent.com> KVM: x86/pmu: Constrain the num of guest counters with kvm_pmu_cap

Cap the number of general purpose counters enumerated on AMD to what KVM
actually supports, i.e. don't allow userspace to coerce KVM into thinking
there are more counters than actually exist, e.g. by enumerating
X86_FEATURE_PERFCTR_CORE in guest CPUID when its not supported.

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Like Xu <likexu@tencent.com>
[sean: massage changelog]
Link: https://lore.kernel.org/r/20230603011058.1038821-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>