diff options
author | Sean Christopherson <[email protected]> | 2020-12-17 16:31:38 -0800 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2021-01-07 18:00:26 -0500 |
commit | dde81f9477d018a96fba991c5928c6ab8cc109f8 (patch) | |
tree | 161eb96575e80fd778af00b5cd92c265d6765c6c /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 39b4d43e6003cee51cd119596d3c33d0449eb44c (diff) |
KVM: x86/mmu: Use raw level to index into MMIO walks' sptes array
Bump the size of the sptes array by one and use the raw level of the
SPTE to index into the sptes array. Using the SPTE level directly
improves readability by eliminating the need to reason out why the level
is being adjusted when indexing the array. The array is on the stack
and is not explicitly initialized; bumping its size is nothing more than
a superficial adjustment to the stack frame.
Signed-off-by: Sean Christopherson <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Vitaly Kuznetsov <[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