[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20241021124615.GC3576661@ziepe.ca>
Date: Mon, 21 Oct 2024 09:46:15 -0300
From: Jason Gunthorpe <jgg@...pe.ca>
To: Lu Baolu <baolu.lu@...ux.intel.com>
Cc: iommu@...ts.linux.dev, Joerg Roedel <joro@...tes.org>,
Will Deacon <will@...nel.org>, Robin Murphy <robin.murphy@....com>,
Kevin Tian <kevin.tian@...el.com>, Yi Liu <yi.l.liu@...el.com>,
Vasant Hegde <vasant.hegde@....com>, linux-kernel@...r.kernel.org
Subject: Re: [PATCH v2 3/7] iommu/vt-d: Enhance compatibility check for
paging domain attach
On Mon, Oct 21, 2024 at 04:51:20PM +0800, Lu Baolu wrote:
> diff --git a/drivers/iommu/intel/nested.c b/drivers/iommu/intel/nested.c
> index 433c58944401..96016bc40f94 100644
> --- a/drivers/iommu/intel/nested.c
> +++ b/drivers/iommu/intel/nested.c
> @@ -40,7 +40,7 @@ static int intel_nested_attach_dev(struct iommu_domain *domain,
> * The s2_domain will be used in nested translation, hence needs
> * to ensure the s2_domain is compatible with this IOMMU.
> */
> - ret = prepare_domain_attach_device(&dmar_domain->s2_domain->domain, dev);
> + ret = paging_domain_compatible(&dmar_domain->s2_domain->domain, dev);
> if (ret) {
> dev_err_ratelimited(dev, "s2 domain is not compatible\n");
> return ret;
This dev_err shouldn't be here, this path would be userspace
triggerable.
Otherwise
Reviewed-by: Jason Gunthorpe <jgg@...dia.com>
Jason
Powered by blists - more mailing lists