Re: [PATCH v7 7/8] iommu/vt-d: Add nested domain allocation

2023-10-25 Thread Jason Gunthorpe
On Wed, Oct 25, 2023 at 07:34:20AM +, Tian, Kevin wrote: > > From: Jason Gunthorpe > > Sent: Wednesday, October 25, 2023 7:03 AM > > > > @@ -4849,6 +4855,7 @@ static void *intel_iommu_hw_info(struct device > > *dev, u32 *length, u32 *type) > > if (!vtd) > > return ERR_PTR(-ENOM

Re: [PATCH v7 7/8] iommu/vt-d: Add nested domain allocation

2023-10-25 Thread Yi Liu
On 2023/10/25 07:03, Jason Gunthorpe wrote: On Tue, Oct 24, 2023 at 08:14:11AM -0700, Yi Liu wrote: From: Lu Baolu This adds the support for IOMMU_HWPT_DATA_VTD_S1 type. And 'nested_parent' is added to mark the nested parent domain to sanitize the input parent domain. Signed-off-by: Lu Baolu

RE: [PATCH v7 7/8] iommu/vt-d: Add nested domain allocation

2023-10-25 Thread Tian, Kevin
> From: Jason Gunthorpe > Sent: Wednesday, October 25, 2023 7:03 AM > > @@ -4849,6 +4855,7 @@ static void *intel_iommu_hw_info(struct device > *dev, u32 *length, u32 *type) > if (!vtd) > return ERR_PTR(-ENOMEM); > > + vtd->flags = IOMMU_HW_INFO_VTD_ERRATA_772415_SPR17; th

Re: [PATCH v7 7/8] iommu/vt-d: Add nested domain allocation

2023-10-24 Thread Jason Gunthorpe
On Tue, Oct 24, 2023 at 08:14:11AM -0700, Yi Liu wrote: > From: Lu Baolu > > This adds the support for IOMMU_HWPT_DATA_VTD_S1 type. And 'nested_parent' > is added to mark the nested parent domain to sanitize the input parent domain. > > Signed-off-by: Lu Baolu > Signed-off-by: Yi Liu > --- >