diff options
| author | Sean Christopherson <[email protected]> | 2019-12-06 15:57:19 -0800 |
|---|---|---|
| committer | Paolo Bonzini <[email protected]> | 2020-01-08 18:16:04 +0100 |
| commit | f0f37e229c0517fa0d8bda73a2aeee28260370a2 (patch) | |
| tree | 9c0431f7b6af26983b3ac4956031b03a2ad3497a /include/linux/debugobjects.h | |
| parent | cb9b88c669396e3e5f957fe909ff901b51321013 (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 <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions