summaryrefslogtreecommitdiff
path: root/tools/docs/lib/parse_data_structs.py
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2025-09-20 00:46:45 +0300
committerSean Christopherson <seanjc@google.com>2025-09-23 18:38:59 +0300
commit571fc2833ed0195d016c96e003b3611e95e40f09 (patch)
tree2330c5de1b791bb93317656b6d380166c5a34bed /tools/docs/lib/parse_data_structs.py
parent210b09fa428c078c44951170fe69234c880a05f6 (diff)
downloadlinux-571fc2833ed0195d016c96e003b3611e95e40f09.tar.xz
KVM: selftests: Track unavailable_mask for PMU events as 32-bit value
Track the mask of "unavailable" PMU events as a 32-bit value. While bits 31:9 are currently reserved, silently truncating those bits is unnecessary and asking for missed coverage. To avoid running afoul of the sanity check in vcpu_set_cpuid_property(), explicitly adjust the mask based on the non-reserved bits as reported by KVM's supported CPUID. Opportunistically update the "all ones" testcase to pass -1u instead of 0xff. Reviewed-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Tested-by: Dapeng Mi <dapeng1.mi@linux.intel.com> Link: https://lore.kernel.org/r/20250919214648.1585683-3-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/docs/lib/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions