]> git.ipfire.org Git - thirdparty/kernel/stable.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Jun 2019 06:00:12 +0000 (08:00 +0200)
commita8ecccf28b99bc4872c768085fbaef9b74c896eb
tree0260573f6fc778ad52c5aa0dbd7dbc29952811af
parent87444f7aafe5a39146bc5aa99d0b15ca28debdf8
KVM: x86/pmu: mask the result of rdpmc according to the width of the counters

[ Upstream commit 0e6f467ee28ec97f68c7b74e35ec1601bb1368a7 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
arch/x86/kvm/pmu.c
arch/x86/kvm/pmu.h
arch/x86/kvm/pmu_amd.c
arch/x86/kvm/vmx/pmu_intel.c