The first patch is a small refactoring to enforce masking of values returned by RDPMC and RDMSR. The second patch fix pmu_intel.c to behave the same as real hardware; this fixes the failing tests introduced in kvm-unit-tests by "x86: PMU: Fix PMU counters masking". (Nadav, this is just FYI. I am not CCing you on individual patches to avoid problems with your corporate overlords, and I am not expecting a review from you). Paolo Paolo Bonzini (2): KVM: x86/pmu: mask the result of rdpmc according to the width of the counters KVM: x86/pmu: do not mask the value that is written to fixed PMUs arch/x86/kvm/pmu.c | 10 +++------- arch/x86/kvm/pmu.h | 3 ++- arch/x86/kvm/pmu_amd.c | 2 +- arch/x86/kvm/vmx/pmu_intel.c | 26 +++++++++++++++++--------- 4 files changed, 23 insertions(+), 18 deletions(-) -- 1.8.3.1