> -----Original Message----- > From: Jason Gunthorpe <j...@nvidia.com> > Sent: Friday, January 31, 2025 2:24 PM > To: Shameerali Kolothum Thodi <shameerali.kolothum.th...@huawei.com> > Cc: Daniel P. Berrangé <berra...@redhat.com>; qemu-...@nongnu.org; > qemu-devel@nongnu.org; eric.au...@redhat.com; > peter.mayd...@linaro.org; nicol...@nvidia.com; ddut...@redhat.com; > Linuxarm <linux...@huawei.com>; Wangzhou (B) > <wangzh...@hisilicon.com>; jiangkunkun <jiangkun...@huawei.com>; > Jonathan Cameron <jonathan.came...@huawei.com>; > zhangfei....@linaro.org; Nathan Chen <nath...@nvidia.com> > Subject: Re: [RFC PATCH 0/5] hw/arm/virt: Add support for user-creatable > nested SMMUv3 > > On Fri, Jan 31, 2025 at 09:33:16AM +0000, Shameerali Kolothum Thodi > wrote: > > > And Qemu does some checking to make sure that the device is indeed > associated > > with the specified phys-smmuv3. This can be done going through the > sysfs path checking > > which is what I guess libvirt is currently doing to populate the topology. > So basically > > Qemu is just replicating that to validate again. > > I would prefer that iommufd users not have to go out to sysfs.. > > > Or another option is extending the IOMMU_GET_HW_INFO IOCTL to > return the phys > > smmuv3 base address which can avoid going through the sysfs. > > It also doesn't seem great to expose a physical address. But we could > have an 'iommu instance id' that was a unique small integer? Ok. But how the user space can map that to the device? Something like, /sys/bus/pci/devices/0000:7d:00.1/iommu/instance.X ? Thanks, Shameer
RE: [RFC PATCH 0/5] hw/arm/virt: Add support for user-creatable nested SMMUv3
Shameerali Kolothum Thodi via Fri, 31 Jan 2025 06:41:13 -0800
- RE: [RFC PATCH 0/5] hw/arm/virt: Add support... Nathan Chen
- RE: [RFC PATCH 0/5] hw/arm/virt: Add su... Shameerali Kolothum Thodi via
- Re: [RFC PATCH 0/5] hw/arm/virt: Ad... Nathan Chen
- Re: [RFC PATCH 0/5] hw/arm/virt: Add su... Daniel P . Berrangé
- RE: [RFC PATCH 0/5] hw/arm/virt: Ad... Shameerali Kolothum Thodi via
- RE: [RFC PATCH 0/5] hw/arm/virt... Shameerali Kolothum Thodi via
- Re: [RFC PATCH 0/5] hw/arm/... Eric Auger
- Re: [RFC PATCH 0/5] hw/arm/... Jason Gunthorpe
- RE: [RFC PATCH 0/5] hw... Shameerali Kolothum Thodi via
- Re: [RFC PATCH 0/5... Jason Gunthorpe
- RE: [RFC PATCH... Shameerali Kolothum Thodi via
- Re: [RFC PATCH... Eric Auger
- Re: [RFC PATCH... Nathan Chen
- Re: [RFC PATCH... Daniel P . Berrangé
- Re: [RFC PATCH... Daniel P . Berrangé
- Re: [RFC PATCH... Eric Auger
- Re: [RFC PATCH 0/5] hw/arm/virt... Daniel P . Berrangé
- RE: [RFC PATCH 0/5] hw/arm/... Shameerali Kolothum Thodi via
- Re: [RFC PATCH 0/5] hw... Daniel P . Berrangé