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

From: Jason Gunthorpe
Date: Fri Aug 18 2023 - 14:22:01 EST


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

Jason