]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Test disabling NX hugepages on a VM
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:22 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:51 +0000 (04:51 -0400)
commit514b708b79de416fdaa8cb16cfb10de0ce3f631b
treee6ee887407e4daa78f11af06fe415757eda2e6b8
parent8caa444bb378ea6d3fd66bc74ed0d378c55d0f53
KVM: selftests: Test disabling NX hugepages on a VM

Add an argument to the NX huge pages test to test disabling the feature
on a VM using the new capability.

Reviewed-by: David Matlack <dmatlack@google.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-10-bgardon@google.com>
[Handle failure of sudo or setcap more gracefully. - Paolo]
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/include/kvm_util_base.h
tools/testing/selftests/kvm/x86_64/nx_huge_pages_test.c
tools/testing/selftests/kvm/x86_64/nx_huge_pages_test.sh