> -----Original Message----- > From: Nicolin Chen <[email protected]> > Sent: Tuesday, March 11, 2025 8:23 PM > To: Shameerali Kolothum Thodi <[email protected]> > Cc: [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; [email protected]; > [email protected]; [email protected]; Linuxarm > <[email protected]>; Wangzhou (B) <[email protected]>; > jiangkunkun <[email protected]>; Jonathan Cameron > <[email protected]>; [email protected] > Subject: Re: [RFC PATCH v2 04/20] hw/arm/virt: Add support for smmuv3- > accel > > On Tue, Mar 11, 2025 at 02:10:29PM +0000, Shameer Kolothum wrote: > > Allow cold-plug smmuv3-accel to virt If the machine wide smmuv3 > > is not specified. > > > > No FDT support is added for now. > > > > Signed-off-by: Shameer Kolothum > <[email protected]> > > --- > > hw/arm/virt.c | 12 ++++++++++++ > > hw/core/sysbus-fdt.c | 1 + > > include/hw/arm/virt.h | 1 + > > 3 files changed, 14 insertions(+) > > > > diff --git a/hw/arm/virt.c b/hw/arm/virt.c > > index 4a5a9666e9..84a323da55 100644 > > --- a/hw/arm/virt.c > > +++ b/hw/arm/virt.c > > @@ -73,6 +73,7 @@ > > #include "qobject/qlist.h" > > #include "standard-headers/linux/input.h" > > #include "hw/arm/smmuv3.h" > > +#include "hw/arm/smmuv3-accel.h" > > smmuv3-accel.h included smmuv3.h in the patch prior. > > > @@ -2911,6 +2912,16 @@ static void > virt_machine_device_plug_cb(HotplugHandler *hotplug_dev, > > platform_bus_link_device(PLATFORM_BUS_DEVICE(vms- > >platform_bus_dev), > > SYS_BUS_DEVICE(dev)); > > } > > + if (object_dynamic_cast(OBJECT(dev), TYPE_ARM_SMMUV3_ACCEL)) > { > > + if (vms->iommu == VIRT_IOMMU_SMMUV3) { > > + error_setg(errp, > > + "iommu=smmuv3 is already specified. can't create > smmuv3-accel dev"); > > + return; > > + } > > + if (vms->iommu != VIRT_IOMMU_SMMUV3_ACCEL) { > > + vms->iommu = VIRT_IOMMU_SMMUV3_ACCEL; > > + } > > Looks like it is to support TYPE_VIRTIO_IOMMU_PCI? > > Just asking: should SMMUV3_ACCEL work with that? Hmm..That's true. It will conflict with virtio-iommu. I will add a blocker if both are specified. Thanks, Shameer
RE: [RFC PATCH v2 04/20] hw/arm/virt: Add support for smmuv3-accel
Shameerali Kolothum Thodi via Wed, 12 Mar 2025 08:41:25 -0700
- RE: [RFC PATCH v2 05/20] hw/arm/smm... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 05/20] hw/arm... Daniel P . Berrangé
- RE: [RFC PATCH v2 05/20] hw... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 05/2... Eric Auger
- Re: [RFC PATCH v2 05/20] hw/arm... Eric Auger
- RE: [RFC PATCH v2 05/20] hw... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 05/2... Eric Auger
- Re: [RFC PATCH v2 05/20] hw/arm/smmuv3-... Donald Dutile
- [RFC PATCH v2 04/20] hw/arm/virt: Add suppor... Shameer Kolothum via
- Re: [RFC PATCH v2 04/20] hw/arm/virt: A... Nicolin Chen
- RE: [RFC PATCH v2 04/20] hw/arm/vir... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 04/20] hw/arm/virt: A... Eric Auger
- RE: [RFC PATCH v2 04/20] hw/arm/vir... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 04/20] hw/arm... Eric Auger
- RE: [RFC PATCH v2 04/20] hw... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 04/2... Eric Auger
- RE: [RFC PATCH v2 ... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 ... Eric Auger
- RE: [RFC PATCH v2 ... Shameerali Kolothum Thodi via
- Re: [RFC PATCH v2 ... Eric Auger
- Re: [RFC PATCH v2 04/20] hw/arm/virt: A... Donald Dutile
