Re: [PATCH 10/17] KVM: TDX: Move set_external_spte_present() assert into TDX code

From: Edgecombe, Rick P

Date: Wed Apr 01 2026 - 20:01:45 EST


On Tue, 2026-03-31 at 10:30 +0000, Huang, Kai wrote:
> On Fri, 2026-03-27 at 13:14 -0700, Rick Edgecombe wrote:
> >  static int tdx_sept_set_private_spte(struct kvm *kvm, gfn_t gfn,
> >        enum pg_level level, u64 mirror_spte)
> >  {
> > -
> >   if (KVM_BUG_ON(!is_shadow_present_pte(mirror_spte), kvm))
> >   return -EIO;
>
> This line deleting isn't needed if it wasn't introduced in the previous
> patch.


Oops, will fix.