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)
commitce690e9c17d27486af879defc506679cbbb14777
tree7978f16a6ede0fc7889c203ea5e3a37f2094f341
parentb8ca01ea19068b54938ebb4ebc06814a89dee8ea
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