summaryrefslogtreecommitdiffstats
path: root/Documentation/arm/samsung-s3c24xx
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2022-07-27 23:34:24 +0000
committerPaolo Bonzini <pbonzini@redhat.com>2022-08-10 15:08:30 -0400
commit6348aafa8d24c156124f76b5a1507079c3213112 (patch)
treea917665371c90aaacd68fa3622398c5d7456d8ea /Documentation/arm/samsung-s3c24xx
parent7de8e5b6b139a3a94aca24e8d8d35b77dc33e0ac (diff)
downloadlinux-6348aafa8d24c156124f76b5a1507079c3213112.tar.bz2
KVM: VMX: Adjust number of LBR records for PERF_CAPABILITIES at refresh
Now that the PMU is refreshed when MSR_IA32_PERF_CAPABILITIES is written by host userspace, zero out the number of LBR records for a vCPU during PMU refresh if PMU_CAP_LBR_FMT is not set in PERF_CAPABILITIES instead of handling the check at run-time. guest_cpuid_has() is expensive due to the linear search of guest CPUID entries, intel_pmu_lbr_is_enabled() is checked on every VM-Enter, _and_ simply enumerating the same "Model" as the host causes KVM to set the number of LBR records to a non-zero value. Signed-off-by: Sean Christopherson <seanjc@google.com> Message-Id: <20220727233424.2968356-4-seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'Documentation/arm/samsung-s3c24xx')
0 files changed, 0 insertions, 0 deletions