]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Refactor nested_map() to specify target level
authorDavid Matlack <dmatlack@google.com>
Fri, 20 May 2022 23:32:42 +0000 (23:32 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2022 14:52:23 +0000 (10:52 -0400)
commit809e7cd56547c610cdb6909599266a1be9d131a6
tree7978f16a6ede0fc7889c203ea5e3a37f2094f341
parent6e749694923c7e932259f9ca462b599d15d325c4
KVM: selftests: Refactor nested_map() to specify target level

Refactor nested_map() to specify that it explicityl wants 4K mappings
(the existing behavior) and push the implementation down into
__nested_map(), which can be used in subsequent commits to create huge
page mappings.

No function change intended.

Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: David Matlack <dmatlack@google.com>
Message-Id: <20220520233249.3776001-5-dmatlack@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/lib/x86_64/vmx.c