summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorTharit Tangkijwanichakul <tharitt97@gmail.com>2026-09-08 23:04:26 +0700
committerSean Christopherson <seanjc@google.com>2026-09-11 15:48:22 -0700
commit2b0e0aa54fa27af7c4afd502ef805e61f80c4498 (patch)
tree3759c22668dd1567705f507b05c6db10df386858 /tools/perf/scripts/python
parent3e7a842fe53301e4d0c2717108b9cd41df009a65 (diff)
KVM: selftests: Add CR8 reserved-bit checks to set_sregs_test
Extend set_sregs_test to cover CR8. Verify that the architecturally allowed bits [3:0] can be set and read back, that every reserved bit [63:4] is rejected by KVM_SET_SREGS, and that a successful set is observable via KVM_GET_SREGS. Without the accompanying fix to kvm_is_valid_sregs(), setting a reserved CR8 bit is silently accepted and the read-back value diverges from the value written, so this test fails on an unpatched kernel and passes once the fix is applied. Signed-off-by: Tharit Tangkijwanichakul <tharitt97@gmail.com> Link: https://patch.msgid.link/20260908160426.6547-3-tharitt97@gmail.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions