summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorYosry Ahmed <yosry@kernel.org>2026-07-28 17:42:30 +0000
committerSean Christopherson <seanjc@google.com>2026-07-29 05:48:17 -0700
commitd99ad3c842f0837ef8dcc622ff88473a700c187f (patch)
tree5fcc7b431e698915ffa27455b726151c7c0b4e2b /include
parentd24dde74f72f3448c4020ba67f6218ecbd1e6d8d (diff)
KVM: selftests: Trigger save+restore randomly in the #PF stress test
Instead of an explicit GUEST_SYNC() after each access+#PF, run another thread that keeps sending SIGUSR to the vCPU thread, essentially triggering exits to userspace and save+restore on random points in guest execution. This makes the test a lot more meaningful as it opens the door to exercising race conditions between #PF handling in the guest and save+restore in the host. The signals are ignored using SIG_IGN outside of __vcpu_run() to avoid interrupting other ioctls/sysctls performed by the test. Assisted-by: Gemini:gemini-3.1-pro Signed-off-by: Yosry Ahmed <yosry@kernel.org> Link: https://patch.msgid.link/20260728174232.2423257-12-yosry@kernel.org Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions