]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit011a354babc2b0ba2bbb7cab9a4cd0f2cff6a524
treef951940ed259c245b68129f997115ff50301bccd
parent99895e34e0ab48295950bc7de2a9a445bb0f8e3d
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