diff options
author | Like Xu <[email protected]> | 2019-10-27 18:52:40 +0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2019-11-15 11:44:08 +0100 |
commit | 98ff80f5b788c1818464022cc61924ef5630d99d (patch) | |
tree | c86ce065c6a8843e01afc33d08ed190c5e61920e /lib/mpi/mpi-inline.h | |
parent | 52ba4b0b99770e892f43da1238f437155acb8b58 (diff) |
KVM: x86/vPMU: Rename pmu_ops callbacks from msr_idx to rdpmc_ecx
The leagcy pmu_ops->msr_idx_to_pmc is only called in kvm_pmu_rdpmc, so
this function actually receives the contents of ECX before RDPMC, and
translates it to a kvm_pmc. Let's clarify its semantic by renaming the
existing msr_idx_to_pmc to rdpmc_ecx_to_pmc, and is_valid_msr_idx to
is_valid_rdpmc_ecx; likewise for the wrapper kvm_pmu_is_valid_msr_idx.
Suggested-by: Paolo Bonzini <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Signed-off-by: Like Xu <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-inline.h')
0 files changed, 0 insertions, 0 deletions