Home
last modified time | relevance | path

Searched hist:"6 a5cba7bed35580effda9fb1872b274da47e6b23" (Results 1 – 4 of 4) sorted by relevance

/openbmc/linux/arch/x86/kvm/svm/
H A Dpmu.cdiff 6a5cba7bed35580effda9fb1872b274da47e6b23 Tue Dec 20 10:12:30 CST 2022 Aaron Lewis <aaronlewis@google.com> KVM: x86/pmu: Correct the mask used in a pmu event filter lookup

When checking if a pmu event the guest is attempting to program should
be filtered, only consider the event select + unit mask in that
decision. Use an architecture specific mask to mask out all other bits,
including bits 35:32 on Intel. Those bits are not part of the event
select and should not be considered in that decision.

Fixes: 66bb8a065f5a ("KVM: x86: PMU Event Filter")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20221220161236.555143-2-aaronlewis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
/openbmc/linux/arch/x86/kvm/
H A Dpmu.hdiff 6a5cba7bed35580effda9fb1872b274da47e6b23 Tue Dec 20 10:12:30 CST 2022 Aaron Lewis <aaronlewis@google.com> KVM: x86/pmu: Correct the mask used in a pmu event filter lookup

When checking if a pmu event the guest is attempting to program should
be filtered, only consider the event select + unit mask in that
decision. Use an architecture specific mask to mask out all other bits,
including bits 35:32 on Intel. Those bits are not part of the event
select and should not be considered in that decision.

Fixes: 66bb8a065f5a ("KVM: x86: PMU Event Filter")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20221220161236.555143-2-aaronlewis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
H A Dpmu.cdiff 6a5cba7bed35580effda9fb1872b274da47e6b23 Tue Dec 20 10:12:30 CST 2022 Aaron Lewis <aaronlewis@google.com> KVM: x86/pmu: Correct the mask used in a pmu event filter lookup

When checking if a pmu event the guest is attempting to program should
be filtered, only consider the event select + unit mask in that
decision. Use an architecture specific mask to mask out all other bits,
including bits 35:32 on Intel. Those bits are not part of the event
select and should not be considered in that decision.

Fixes: 66bb8a065f5a ("KVM: x86: PMU Event Filter")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20221220161236.555143-2-aaronlewis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
/openbmc/linux/arch/x86/kvm/vmx/
H A Dpmu_intel.cdiff 6a5cba7bed35580effda9fb1872b274da47e6b23 Tue Dec 20 10:12:30 CST 2022 Aaron Lewis <aaronlewis@google.com> KVM: x86/pmu: Correct the mask used in a pmu event filter lookup

When checking if a pmu event the guest is attempting to program should
be filtered, only consider the event select + unit mask in that
decision. Use an architecture specific mask to mask out all other bits,
including bits 35:32 on Intel. Those bits are not part of the event
select and should not be considered in that decision.

Fixes: 66bb8a065f5a ("KVM: x86: PMU Event Filter")
Signed-off-by: Aaron Lewis <aaronlewis@google.com>
Link: https://lore.kernel.org/r/20221220161236.555143-2-aaronlewis@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>