aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2022-09-29 11:12:07 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2022-09-30 06:39:36 -0400
commit458e98746fa852d744d34b5a8d0b1673959efc2f (patch)
tree32e32bcebee63ef2398050116e84da76b01bc28a /arch
parent4d2bd14319e4e0a49fc868c50ca0b2a747b58208 (diff)
downloadlinux-458e98746fa852d744d34b5a8d0b1673959efc2f.tar.gz
KVM: selftests: Fix nx_huge_pages_test on TDP-disabled hosts
Map the test's huge page region with 2MiB virtual mappings when TDP is disabled so that KVM can shadow the region with huge pages. This fixes nx_huge_pages_test on hosts where TDP hardware support is disabled. Purposely do not skip this test on TDP-disabled hosts. While we don't care about NX Huge Pages on TDP-disabled hosts from a security perspective, KVM does support it, and so we should test it. For TDP-enabled hosts, continue mapping the region with 4KiB pages to ensure that KVM can map it with huge pages irrespective of the guest mappings. Fixes: 8448ec5993be ("KVM: selftests: Add NX huge pages test") Signed-off-by: David Matlack <dmatlack@google.com> Message-Id: <20220929181207.2281449-4-dmatlack@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions