diff options
author | Sean Christopherson <seanjc@google.com> | 2022-10-06 00:03:14 +0000 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2022-11-09 12:31:13 -0500 |
commit | 686e0f0324f07ea1979462f659b24b1195996fe0 (patch) | |
tree | b6f7c92d59e86d2ffc4624124ebbe5061c753ab1 /include/linux/rcuwait_api.h | |
parent | 5fe9805dc2f58bebb3bf5dd298559c4bad5f0448 (diff) |
KVM: x86: Directly query supported PERF_CAPABILITIES for WRMSR checks
Use kvm_caps.supported_perf_cap directly instead of bouncing through
kvm_get_msr_feature() when checking the incoming value for writes to
PERF_CAPABILITIES.
Note, kvm_get_msr_feature() is guaranteed to succeed when getting
PERF_CAPABILITIES, i.e. dropping that check is a nop.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20221006000314.73240-9-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/rcuwait_api.h')
0 files changed, 0 insertions, 0 deletions