Re: [PATCH v4 09/12] iommu/vt-d: Add iotlb flush for nested domain

From: Nicolin Chen
Date: Fri Aug 18 2023 - 14:26:58 EST


On Fri, Aug 18, 2023 at 03:20:55PM -0300, Jason Gunthorpe wrote:
> On Fri, Aug 18, 2023 at 10:56:45AM -0700, Nicolin Chen wrote:
>
> > > The highest array index sounds generic, the error code maybe is too
> >
> > We could do in its and report the error code in its raw form:
> > __u32 out_array_index;
> > /* number of bits used to report error code in the returned array_index */
> > __u32 out_array_index_error_code_bits;
> > Or just:
> > __u32 out_array_index;
> > __u32 out_error_code;
> >
> > Do we have to define a list of generic error code?
>
> out_driver_error_code may be OK

Ack. Will implement the array in that way.

Thanks!
Nic