summaryrefslogtreecommitdiff
path: root/arch/x86/kvm/mmu/mmu.c
diff options
context:
space:
mode:
authorSean Christopherson <sean.j.christopherson@intel.com>2020-01-08 12:24:39 -0800
committerPaolo Bonzini <pbonzini@redhat.com>2020-01-27 20:00:03 +0100
commit13c72c060f1ba6f4eddd7b1c4f52a8aded43d6d9 (patch)
treec0043704b8ec370deff286db8bbaa8f8ebed74dd /arch/x86/kvm/mmu/mmu.c
parent42cde48b2d39772dba47e680781a32a6c4b7dc33 (diff)
downloadlwn-13c72c060f1ba6f4eddd7b1c4f52a8aded43d6d9.tar.gz
lwn-13c72c060f1ba6f4eddd7b1c4f52a8aded43d6d9.zip
x86/mm: Introduce lookup_address_in_mm()
Add a helper, lookup_address_in_mm(), to traverse the page tables of a given mm struct. KVM will use the helper to retrieve the host mapping level, e.g. 4k vs. 2mb vs. 1gb, of a compound (or DAX-backed) page without having to resort to implementation specific metadata. E.g. KVM currently uses different logic for HugeTLB vs. THP, and would add a third variant for DAX-backed files. Cc: Dan Williams <dan.j.williams@intel.com> Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com> Reviewed-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu/mmu.c')
0 files changed, 0 insertions, 0 deletions