]> www.infradead.org Git - users/dwmw2/linux.git/commit
KVM: selftests: Add EVTCHNOP_send slow path test to xen_shinfo_test kvm-lockdep
authorDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 13 Jan 2023 12:28:21 +0000 (12:28 +0000)
committerDavid Woodhouse <dwmw@amazon.co.uk>
Fri, 13 Jan 2023 19:54:29 +0000 (19:54 +0000)
commit4f73b83685a3e2252f242246baddf961ab93ef62
treed5f18e8245c9035e67427bc22c78f8ade1ab436a
parent79b49b31f3488ed108d1e80be22d87317dca0182
KVM: selftests: Add EVTCHNOP_send slow path test to xen_shinfo_test

When kvm_xen_evtchn_send() takes the slow path because the shinfo GPC
needs to be revalidated, it used to violate the SRCU vs. kvm->lock
locking rules and potentially cause a deadlock.

Now that lockdep is learning to catch such things, make sure that code
path is exercised by the selftest.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
tools/testing/selftests/kvm/x86_64/xen_shinfo_test.c