Re: [PATCH v3 1/5] iommu: Return -EMEDIUMTYPE for incompatible domain and device/group

From
Jason Gunthorpe <jgg@nvidia.com>
Date
2022-06-24 18:19:54
Also in
kvm, linux-arm-msm, linux-iommu, linux-mediatek, linux-s390, linux-tegra, lkml
Reply to
Yong Wu, 2022-06-24
On Fri, Jun 24, 2022 at 06:35:49PM +0800, Yong Wu wrote:
quoted
quoted
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 ?
quoted
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

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Thread (23 messages) 23 messages, 6 authors, last reply 2022-06-30
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help