Re: [PATCH 8/8] KVM: x86/xen: Use 32-bit locked ops in kvm_xen_inject_pending_events()

From: David Woodhouse

Date: Wed Jul 08 2026 - 12:06:52 EST


On Wed, 2026-07-08 at 08:23 -0700, Sean Christopherson wrote:
> This is... impressive?  Related to the above comment about there being two separate
> atomic operation, only the access to vi->evtchn_pending_sel needs to deal with
> potential split-lock issues.  And there's zero to handle the NOT in the asm blob.
>
> Rather than munge the 32-bit and 64-bit cases together, just manually handle the
> case where the bitwise-OR needs to be chunked in two.

Yeah... that seems a whole lot more sensible than the ... "impressive"
version. I think I got a bit lost there... :)

Thanks.

Attachment: smime.p7s
Description: S/MIME cryptographic signature