On Tue, 2025-08-26 at 17:05 -0700, Sean Christopherson wrote: > Return -EIO immediately from tdx_sept_zap_private_spte() if the number of > to-be-added pages underflows, so that the following "KVM_BUG_ON(err, kvm)" > isn't also triggered. Isolating the check from the "is premap error" > if-statement will also allow adding a lockdep assertion that premap errors > are encountered if and only if slots_lock is held. > > Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx> > --- Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>