commit | c900c156c518302058a48d2efe3ca44e465cad22 | [log] [tgz] |
---|---|---|
author | Like Xu <like.xu@linux.intel.com> | Sun Oct 27 18:52:41 2019 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Fri Nov 15 11:44:09 2019 +0100 |
tree | 072b174107fd75e4558d7967e42e78f9de497e6b | |
parent | 98ff80f5b788c1818464022cc61924ef5630d99d [diff] |
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>