aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/modules.py
diff options
context:
space:
mode:
authorAaron Lewis <[email protected]>2022-05-17 05:12:36 +0000
committerPaolo Bonzini <[email protected]>2022-05-20 07:06:29 -0400
commit4ac19ead0dfbabd8e0bfc731f507cfb0b95d6c99 (patch)
tree503f77d5e4605325356792e629b5544c4ab9c075 /scripts/gdb/linux/modules.py
parent6f5adb35045d1100b715aad864589b0c41040ff4 (diff)
kvm: x86/pmu: Fix the compare function used by the pmu event filter
When returning from the compare function the u64 is truncated to an int. This results in a loss of the high nybble[1] in the event select and its sign if that nybble is in use. Switch from using a result that can end up being truncated to a result that can only be: 1, 0, -1. [1] bits 35:32 in the event select register and bits 11:8 in the event select. Fixes: 7ff775aca48ad ("KVM: x86/pmu: Use binary search to check filtered events") Signed-off-by: Aaron Lewis <[email protected]> Reviewed-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/modules.py')
0 files changed, 0 insertions, 0 deletions