[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250221150401.GY3696814@ziepe.ca>
Date: Fri, 21 Feb 2025 11:04:01 -0400
From: Jason Gunthorpe <jgg@...pe.ca>
To: Baolu Lu <baolu.lu@...ux.intel.com>
Cc: Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>,
Robin Murphy <robin.murphy@....com>,
Kevin Tian <kevin.tian@...el.com>,
Dave Jiang <dave.jiang@...el.com>, Vinod Koul <vkoul@...nel.org>,
Zhangfei Gao <zhangfei.gao@...aro.org>,
Zhou Wang <wangzhou1@...ilicon.com>, iommu@...ts.linux.dev,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH 08/12] iommufd/selftest: Put iopf enablement in domain
attach path
On Fri, Feb 21, 2025 at 09:31:48AM +0800, Baolu Lu wrote:
> How about below change?
Sure
> - return mock_dev_enable_iopf(dev, domain);
> + if (mdev->domain)
> + mock_dev_disable_iopf(dev, mdev->domain);
> +
> + ret = mock_dev_enable_iopf(dev, domain);
> + if (ret)
Though here the domain is disabled but not removed from mdev->domain,
is it OK?
Jason
Powered by blists - more mailing lists