diff options
author | Like Xu <like.xu@linux.intel.com> | 2019-10-27 18:52:41 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2019-11-15 11:44:09 +0100 |
commit | c900c156c518302058a48d2efe3ca44e465cad22 (patch) | |
tree | 072b174107fd75e4558d7967e42e78f9de497e6b /ipc/ipc_sysctl.c | |
parent | 98ff80f5b788c1818464022cc61924ef5630d99d (diff) | |
download | linux-c900c156c518302058a48d2efe3ca44e465cad22.tar.gz linux-c900c156c518302058a48d2efe3ca44e465cad22.tar.bz2 linux-c900c156c518302058a48d2efe3ca44e465cad22.zip |
KVM: x86/vPMU: Introduce a new kvm_pmu_ops->msr_idx_to_pmc callback
Introduce a new callback msr_idx_to_pmc that returns a struct kvm_pmc*,
and change kvm_pmu_is_valid_msr to return ".msr_idx_to_pmc(vcpu, msr) ||
.is_valid_msr(vcpu, msr)" and AMD just returns false from .is_valid_msr.
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Reported-by: kbuild test robot <lkp@intel.com>
Signed-off-by: Like Xu <like.xu@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'ipc/ipc_sysctl.c')
0 files changed, 0 insertions, 0 deletions