Re: [PATCH v3 2/4] KVM: Use goto to handle errors during memslot preparation
From: Ackerley Tng
Date: Wed Sep 09 2026 - 19:17:27 EST
Sean Christopherson <seanjc@xxxxxxxxxx> writes:
> Use a goto to unwind early memslot changes if preparing for a memslot
> operation fails. This will allow moving the creation of guest_memfd
> bindings into kvm_set_memslot() without needing to copy+paste the unwind
> logic.
>
> No functional change intended.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Ackerley Tng <ackerleytng@xxxxxxxxxx>
>
> [...snip...]
>