aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2020-02-18 15:40:11 -0800
committerPaolo Bonzini <[email protected]>2020-05-27 13:11:08 -0400
commitcb97c2d680dd9cefd2b36cafd2426f52d85b27e7 (patch)
treee42d1cc22d5a8a6daf588870cb9c22f7fb629464 /tools/perf/scripts/python/export-to-sqlite.py
parent7cb85fc465fdb91e88eff02b496150b1270952cf (diff)
KVM: x86: Take an unsigned 32-bit int for has_emulated_msr()'s index
Take a u32 for the index in has_emulated_msr() to match hardware, which treats MSR indices as unsigned 32-bit values. Functionally, taking a signed int doesn't cause problems with the current code base, but could theoretically cause problems with 32-bit KVM, e.g. if the index were checked via a less-than statement, which would evaluate incorrectly for MSR indices with bit 31 set. Reviewed-by: Vitaly Kuznetsov <[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/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions