diff options
author | Like Xu <like.xu@linux.intel.com> | 2021-02-01 13:10:38 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-04 05:27:26 -0500 |
commit | be635e34c284d08b1da7f93ddd6a2110617d15e7 (patch) | |
tree | 60dbea4f591e103ab02a2903e8565324bc9aec46 /tools/testing/selftests/kvm/lib/x86_64 | |
parent | KVM: vmx/pmu: Release guest LBR event via lazy release mechanism (diff) | |
download | linux-dev-be635e34c284d08b1da7f93ddd6a2110617d15e7.tar.xz linux-dev-be635e34c284d08b1da7f93ddd6a2110617d15e7.zip |
KVM: vmx/pmu: Expose LBR_FMT in the MSR_IA32_PERF_CAPABILITIES
Userspace could enable guest LBR feature when the exactly supported
LBR format value is initialized to the MSR_IA32_PERF_CAPABILITIES
and the LBR is also compatible with vPMU version and host cpu model.
The LBR could be enabled on the guest if host perf supports LBR
(checked via x86_perf_get_lbr()) and the vcpu model is compatible
with the host one.
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Message-Id: <20210201051039.255478-11-like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm/lib/x86_64')
0 files changed, 0 insertions, 0 deletions