KVM: selftests: Add option to create 2M and 1G EPT mappings
authorDavid Matlack <dmatlack@google.com>
Fri, 20 May 2022 23:32:40 +0000 (23:32 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jun 2022 14:52:22 +0000 (10:52 -0400)
commitc5a0ccec4cb4edde8e5b7e369dbe4d169b111e42
tree3f61a53fb92be3e17e21d66034a1376e3b1edb6d
parent4ee602e78d706e740a48be9b6ddb239df4a113b5
KVM: selftests: Add option to create 2M and 1G EPT mappings

The current EPT mapping code in the selftests only supports mapping 4K
pages. This commit extends that support with an option to map at 2M or
1G. This will be used in a future commit to create large page mappings
to test eager page splitting.

No functional change intended.

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