Re: [patch V6 07/31] rseq, virt: Retrigger RSEQ after vcpu_run()

From: Mathieu Desnoyers

Date: Tue Oct 28 2025 - 11:08:28 EST


On 2025-10-27 04:44, Thomas Gleixner wrote:
Hypervisors invoke resume_user_mode_work() before entering the guest, which
clears TIF_NOTIFY_RESUME. The @regs argument is NULL as there is no user
space context available to them, so the rseq notify handler skips
inspecting the critical section, but updates the CPU/MM CID values
unconditionally so that the eventual pending rseq event is not lost on the
way to user space.
[...]

Reviewed-by: Mathieu Desnoyers <mathieu.desnoyers@xxxxxxxxxxxx>

--
Mathieu Desnoyers
EfficiOS Inc.
https://www.efficios.com