Re: [PATCH v3] KVM: selftests: Test prefault memory during concurrent memslot removal

From: Sean Christopherson
Date: Fri Oct 10 2025 - 17:31:25 EST


On Wed, 24 Sep 2025 10:42:55 -0700, Sean Christopherson wrote:
> Expand the prefault memory selftest to add a regression test for a KVM bug
> where TDX's retry logic (to avoid tripping the zero-step mitigation) would
> result in deadlock due to the memslot deletion waiting on prefaulting to
> release SRCU, and prefaulting waiting on the memslot to fully disappear
> (KVM uses a two-step process to delete memslots, and KVM x86 retries page
> faults if a to-be-deleted, a.k.a. INVALID, memslot is encountered).
>
> [...]

Applied to kvm-x86 fixes, with a massaged changelog to call out that it's
KVM's retry logic, not the TDX-specific zero-step logic that is being tested.

[1/1] KVM: selftests: Test prefault memory during concurrent memslot removal
https://github.com/kvm-x86/linux/commit/1bcc3f879127

--
https://github.com/kvm-x86/linux/tree/next