[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20220624181943.GV4147@nvidia.com>
Date: Fri, 24 Jun 2022 15:19:43 -0300
From: Jason Gunthorpe <jgg@...dia.com>
To: Yong Wu <yong.wu@...iatek.com>
Cc: "Tian, Kevin" <kevin.tian@...el.com>,
Nicolin Chen <nicolinc@...dia.com>,
Baolu Lu <baolu.lu@...ux.intel.com>,
"linux-s390@...r.kernel.org" <linux-s390@...r.kernel.org>,
"cohuck@...hat.com" <cohuck@...hat.com>,
"jordan@...micpenguin.net" <jordan@...micpenguin.net>,
"linux-tegra@...r.kernel.org" <linux-tegra@...r.kernel.org>,
"thierry.reding@...il.com" <thierry.reding@...il.com>,
"will@...nel.org" <will@...nel.org>,
"alyssa@...enzweig.io" <alyssa@...enzweig.io>,
"jean-philippe@...aro.org" <jean-philippe@...aro.org>,
"kvm@...r.kernel.org" <kvm@...r.kernel.org>,
"zhang.lyra@...il.com" <zhang.lyra@...il.com>,
"iommu@...ts.linux-foundation.org" <iommu@...ts.linux-foundation.org>,
"jonathanh@...dia.com" <jonathanh@...dia.com>,
"yangyingliang@...wei.com" <yangyingliang@...wei.com>,
"orsonzhai@...il.com" <orsonzhai@...il.com>,
"gerald.schaefer@...ux.ibm.com" <gerald.schaefer@...ux.ibm.com>,
"linux-arm-msm@...r.kernel.org" <linux-arm-msm@...r.kernel.org>,
"alex.williamson@...hat.com" <alex.williamson@...hat.com>,
"christophe.jaillet@...adoo.fr" <christophe.jaillet@...adoo.fr>,
"matthias.bgg@...il.com" <matthias.bgg@...il.com>,
"tglx@...utronix.de" <tglx@...utronix.de>,
"virtualization@...ts.linux-foundation.org"
<virtualization@...ts.linux-foundation.org>,
"linux-arm-kernel@...ts.infradead.org"
<linux-arm-kernel@...ts.infradead.org>,
"dwmw2@...radead.org" <dwmw2@...radead.org>,
"marcan@...can.st" <marcan@...can.st>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
"baolin.wang7@...il.com" <baolin.wang7@...il.com>,
"linux-mediatek@...ts.infradead.org"
<linux-mediatek@...ts.infradead.org>,
"robin.murphy@....com" <robin.murphy@....com>
Subject: Re: [PATCH v3 1/5] iommu: Return -EMEDIUMTYPE for incompatible
domain and device/group
On Fri, Jun 24, 2022 at 06:35:49PM +0800, Yong Wu wrote:
> > > It's not used in VFIO context. "return 0" just satisfy the iommu
> > > framework to go ahead. and yes, here we only allow the shared
> > > "mapping-domain" (All the devices share a domain created
> > > internally).
What part of the iommu framework is trying to attach a domain and
wants to see success when the domain was not actually attached ?
> > What prevent this driver from being used in VFIO context?
>
> Nothing prevent this. Just I didn't test.
This is why it is wrong to return success here.
Jason
Powered by blists - more mailing lists