[PATCH v3 11/25] KVM: TDX: Avoid a double-KVM_BUG_ON() in tdx_sept_zap_private_spte()
Huang, Kai
kai.huang at intel.com
Fri Oct 24 09:21:44 AEDT 2025
On Thu, 2025-10-16 at 17:32 -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.
>
> Reviewed-by: Rick Edgecombe <rick.p.edgecombe at intel.com>
> Reviewed-by: Binbin Wu <binbin.wu at linux.intel.com>
> Signed-off-by: Sean Christopherson <seanjc at google.com>
>
Reviewed-by: Kai Huang <kai.huang at intel.com>
More information about the Linuxppc-dev
mailing list