diff options
author | Sean Christopherson <seanjc@google.com> | 2021-02-12 16:50:04 -0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-02-19 03:08:11 -0500 |
commit | 1b6d9d9ed5717157933db77d96bb12884c17ce52 (patch) | |
tree | 823839c2cad23e0ed51db9ad41fdd3eb4e335f4c /tools/perf/scripts/python/stackcollapse.py | |
parent | c060c72ffeb448fbb5864faa1f672ebfe14dd25f (diff) |
KVM: x86/mmu: Split out max mapping level calculation to helper
Factor out the logic for determining the maximum mapping level given a
memslot and a gpa. The helper will be used when zapping collapsible
SPTEs when disabling dirty logging, e.g. to avoid zapping SPTEs that
can't possibly be rebuilt as hugepages.
No functional change intended.
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210213005015.1651772-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions