RE: [PATCH v3 5/6] iommu: Use EINVAL for incompatible device/domain in ->attach_dev

2022-09-21 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, September 21, 2022 2:07 AM > > On Tue, Sep 20, 2022 at 06:38:18AM +, Tian, Kevin wrote: > > > Above lacks of a conversion in intel-iommu: > > > > intel_iommu_attach_device() > > if (domain->type == IOMMU_DOMAIN_UNMANAGED && > >

RE: [PATCH v3 5/6] iommu: Use EINVAL for incompatible device/domain in ->attach_dev

2022-09-20 Thread Tian, Kevin
> From: Nicolin Chen > Sent: Thursday, September 15, 2022 3:54 PM > diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c > index 1f2cd43cf9bc..51ef42b1bd4e 100644 > --- a/drivers/iommu/intel/iommu.c > +++ b/drivers/iommu/intel/iommu.c > @@ -4158,19 +4158,15 @@ static int