]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Hoist guest_memfd max level/order helpers "up" in mmu.c
authorSean Christopherson <seanjc@google.com>
Tue, 29 Jul 2025 22:54:44 +0000 (15:54 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 27 Aug 2025 08:35:00 +0000 (04:35 -0400)
commit1c3fdf13703ba6bb006671db72b7a02d2bd58b8b
tree22e2b1de32b9e1d2aeb86ce1d802081ca3c3441f
parentd6c840adfebca55d4520244c77467bd16b4ea41e
KVM: x86/mmu: Hoist guest_memfd max level/order helpers "up" in mmu.c

Move kvm_max_level_for_order() and kvm_max_private_mapping_level() up in
mmu.c so that they can be used by __kvm_mmu_max_mapping_level().

Opportunistically drop the "inline" from kvm_max_level_for_order().

No functional change intended.

Reviewed-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Ackerley Tng <ackerleytng@google.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Message-ID: <20250729225455.670324-14-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c