summaryrefslogtreecommitdiff
path: root/scripts/stackusage
diff options
context:
space:
mode:
authorSean Christopherson2019-12-06 15:57:19 -0800
committerPaolo Bonzini2020-01-08 18:16:04 +0100
commitf0f37e229c0517fa0d8bda73a2aeee28260370a2 (patch)
tree9c0431f7b6af26983b3ac4956031b03a2ad3497a /scripts/stackusage
parentcb9b88c669396e3e5f957fe909ff901b51321013 (diff)
KVM: x86/mmu: Refactor the per-slot level calculation in mapping_level()
Invert the loop which adjusts the allowed page level based on what's compatible with the associated memslot to use a largest-to-smallest page size walk. This paves the way for passing around a "max level" variable instead of having redundant checks and/or multiple booleans. No functional change intended. Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'scripts/stackusage')
0 files changed, 0 insertions, 0 deletions