On Fri, 17 Oct 2025 at 17:40, Shameer Kolothum <[email protected]> wrote: > > > > > -----Original Message----- > > From: Zhangfei Gao <[email protected]> > > Sent: 17 October 2025 09:49 > > To: Shameer Kolothum <[email protected]> > > Cc: [email protected]; [email protected]; > > [email protected]; [email protected]; Jason Gunthorpe > > <[email protected]>; Nicolin Chen <[email protected]>; [email protected]; > > [email protected]; Nathan Chen <[email protected]>; Matt Ochs > > <[email protected]>; [email protected]; [email protected]; > > [email protected]; [email protected]; > > [email protected]; [email protected]; > > [email protected] > > Subject: Re: [PATCH v4 21/27] hw/arm/smmuv3-accel: Add a property to > > specify RIL support > > > > External email: Use caution opening links or attachments > > > > > > On Mon, 29 Sept 2025 at 21:40, Shameer Kolothum > > <[email protected]> wrote: > > > > > > Currently QEMU SMMUv3 has RIL support by default. But if accelerated > > > mode is enabled, RIL has to be compatible with host SMMUv3 support. > > > > > > Add a property so that the user can specify this. > > > > > > Signed-off-by: Shameer Kolothum <[email protected]> > > > > If ril=off is not specified, the guest kernel will not boot up, is this > > expected? > > > > Fail with log: > > qemu-system-aarch64: -device > > vfio-pci,host=0000:75:00.1,bus=pcie.0,iommufd=iommufd0: > > vfio 0000:75:00.1: Failed to set vIOMMU: Host SUMMUv3 differs in Range > > Invalidation support > > It will, if the host SMMUv3 doesn't have RIL. Please check that.
Yes, the host SMMUv3 doesn't have RIL in my case. > This is because when a device is attached to vSMMU , a compatibility check > is performed to ensure that the SMUUv3 features visible to guest are > compatible > with host SMMUv3 it is tied to. By default, QEMU SMMUV3 reports RIL to Guest. OK, got it, using ioctl to get host info and check the compatibility. > > The "ril" option is provided so that user can specify this in case > incompatibility. OK, Thanks
