]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Refactor THP adjust to prep for changing query
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 8 Jan 2020 20:24:40 +0000 (12:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 19:00:04 +0000 (20:00 +0100)
commit82d51c15517c31630a0dbda16cf667c801982e11
tree582891aa169cb3287f5518aaf9b3395ee6910033
parentdd4132d3913ee12234c8d479754f5c66a69ed6ef
KVM: x86/mmu: Refactor THP adjust to prep for changing query

Refactor transparent_hugepage_adjust() in preparation for walking the
host page tables to identify hugepage mappings, initially for THP pages,
and eventualy for HugeTLB and DAX-backed pages as well.  The latter
cases support 1gb pages, i.e. the adjustment logic needs access to the
max allowed level.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/paging_tmpl.h