[PATCH 0/2] KVM: guest_memfd: Handle xarray binding errors
From: Sean Christopherson
Date: Wed Aug 26 2026 - 13:03:55 EST
Handle errors when inserting into guest_memfd's binding xarray, e.g. to
do the right thing on ENOMEM.
Patch 2 is a related cleanup to remove a superflous WRITE_ONCE() (unwinding
the slot update on insertion failure isn't an option if the slot is observable,
i.e. if the WRITE_ONCE() is actually necessary).
Sean Christopherson (2):
KVM: guest_memfd: Gracefully handle xarray errors when binding a
memslot
KVM: guest_memfd: Drop superfluous WRITE_ONCE() when binding a memslot
virt/kvm/guest_memfd.c | 15 ++++++++++++---
1 file changed, 12 insertions(+), 3 deletions(-)
base-commit: 76671054f9a1ff6abb976583cd8da37650acdc97
--
2.55.0.887.g758fc8c411-goog