]> 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)
commit9d6d499b06220371a5d95575febb874018139199
tree3f61a53fb92be3e17e21d66034a1376e3b1edb6d
parentc623b819d19114a8eb726368cb037547e0cd6694
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