On Sun, Jul 31, 2016 at 02:01:26PM +0200, Jan Kiszka wrote: [...]
> Yes, there has to be a generic handle for each translation result an > IOMMU generated. This handle can be stored on the consumer side along > with the translation request. How a handle is generated should be > completely up to the IOMMU. > > The consumer should receive a 32-bit (or more) opaque value with each > translation request (separate parameter) and then again on specific > invalidation. The latter case may also report a range of handles, to > make things more efficient (provided the consumer store those handles > close to each other). Agreed. So I think masking can still survive to describe "a range of handles" for AMD IOMMUs, as long as we are sure the masked range covers the maximum index number of IRTE entry for specific device. Thanks, -- peterx