OSDN Git Service

KVM: x86/pmu: mask the result of rdpmc according to the width of the counters
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 20 May 2019 15:20:40 +0000 (17:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:13 +0000 (21:27 +0200)
commit0e6f467ee28ec97f68c7b74e35ec1601bb1368a7
treef951940ed259c245b68129f997115ff50301bccd
parenta80c4ec10ed9632c44c829452dc40a0443ff4e85
KVM: x86/pmu: mask the result of rdpmc according to the width of the counters

This patch will simplify the changes in the next, by enforcing the
masking of the counters to RDPMC and RDMSR.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/pmu_amd.c
arch/x86/kvm/vmx/pmu_intel.c