]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd7483c527b6118f9e231beab7c431b1fb6fd7fd9
tree3f61a53fb92be3e17e21d66034a1376e3b1edb6d
parent7487617226a3eed95f310fa1a323d20cbd3ddaf3
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