summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/kvm/x86/nested_exceptions_test.c
diff options
context:
space:
mode:
authorSean Christopherson <seanjc@google.com>2024-11-27 16:55:44 -0800
committerSean Christopherson <seanjc@google.com>2024-12-18 14:15:02 -0800
commitb6c304aec6483f6cd254df690eda35b225cd856c (patch)
tree388c6e01da5e51b48d4ef3702c60ee647ef56e05 /tools/testing/selftests/kvm/x86/nested_exceptions_test.c
parent80b7859a3a43ff8bb924947a03b144626aeb1d0c (diff)
downloadlinux-b6c304aec6483f6cd254df690eda35b225cd856c.tar.gz
linux-b6c304aec6483f6cd254df690eda35b225cd856c.tar.bz2
linux-b6c304aec6483f6cd254df690eda35b225cd856c.zip
KVM: selftests: Verify KVM correctly handles mprotect(PROT_READ)
Add two phases to mmu_stress_test to verify that KVM correctly handles guest memory that was writable, and then made read-only in the primary MMU, and then made writable again. Add bonus coverage for x86 and arm64 to verify that all of guest memory was marked read-only. Making forward progress (without making memory writable) requires arch specific code to skip over the faulting instruction, but the test can at least verify each vCPU's starting page was made read-only for other architectures. Link: https://lore.kernel.org/r/20241128005547.4077116-14-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'tools/testing/selftests/kvm/x86/nested_exceptions_test.c')
0 files changed, 0 insertions, 0 deletions