aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/exported-sql-viewer.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2021-01-13 12:45:15 -0800
committerPaolo Bonzini <[email protected]>2021-01-25 18:52:06 -0500
commiteb79cd00ce25974c21f34f1eeb92a580ff572971 (patch)
tree49e1ba395906d96346e471dd430d76d8fdd1a744 /tools/perf/scripts/python/exported-sql-viewer.py
parenta10f373ad3c760dd40b41e2f69a800ee7b8da15e (diff)
KVM: x86: Add more protection against undefined behavior in rsvd_bits()
Add compile-time asserts in rsvd_bits() to guard against KVM passing in garbage hardcoded values, and cap the upper bound at '63' for dynamic values to prevent generating a mask that would overflow a u64. Suggested-by: Paolo Bonzini <[email protected]> Signed-off-by: Sean Christopherson <[email protected]> Message-Id: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions