Re: [PATCH 3/3] iommu/vt-d: Rework hitless PASID entry replacement
From: Jason Gunthorpe
Date: Tue Jan 13 2026 - 15:56:56 EST
On Tue, Jan 13, 2026 at 11:27:30AM -0800, Samiullah Khawaja wrote:
> > - Update 'struct pasid_entry' with a union to support 128-bit
> > access via the newly added val128[4] array.
> > - Add pasid_support_hitless_replace() to determine if a transition
> > between an old and new entry is safe to perform atomically.
> > - For First-level/Nested translations: The first 128 bits (chunk 0)
> > must remain identical; chunk 1 is updated atomically.
>
> Looking at the specs, the DID is part of the first 128 bits (chunk 0),
> so I guess for the first level the hitless replacement would not be
> supported since each domain will have a different DID?
Ah, yeah, you wont be able to do the KHO replace thing when using a
first stage..
Jason