Skip to contentSkip to conversation

hw/arm/virt: Add support for user-creatable accelerated SMMUv3

PATCH Superseded Shameer Kolothum 10 participants 115 messages Nov 20, 2025 – Jan 9 Arm/Amlogic Meson SoC support Page 2 of 2

v6 of 9 Superseded Latest is v9 →

lore
Share & tools
lore
#114 lore raw
In reply to Cédric Le Goater
Quoted 55 lines · Cédric Le Goater
Quoted 24 lines · Shameer Kolothum
Quoted 19 lines

-----Original Message-----
From: Cédric Le Goater <[email protected]>
Sent: 09 December 2025 10:32
To: Shameer Kolothum <[email protected]>; qemu- [email protected]; [email protected]
Cc: [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]; Krishnakant Jaju <[email protected]>
Subject: Re: [PATCH v6 00/33] hw/arm/virt: Add support for user-creatable
accelerated SMMUv3

[...]

Quoted 3 lines

FYI, I am seeing configure errors :

Quoted 8 lines
Quoted 3 lines

The following clauses were found for ARM_SMMUV3_ACCEL select ARM_SMMUV3_ACCEL if ARM_VIRT
      config ARM_SMMUV3_ACCEL depends on (ARM_SMMUV3 && IOMMUFD)

-    select ARM_SMMUV3_ACCEL
+    imply  ARM_SMMUV3_ACCEL

the above will fix it?

No. I would propose :

(quoted diff) +0 -0
@@ -12,7 +12,6 @@ config ARM_VIRT

     select ARM_GIC
     select ACPI
     select ARM_SMMUV3
-    select ARM_SMMUV3_ACCEL
     select GPIO_KEY
     select DEVICE_TREE
     select FW_CFG_DMA

(quoted diff) +0 -0
@@ -627,12 +626,13 @@ config FSL_IMX8MP_EVK

     depends on TCG
     select FSL_IMX8MP

(quoted diff) +1 -1
-config ARM_SMMUV3
+config ARM_SMMUV3_ACCEL

     bool
+    depends on ARM_SMMUV3

(quoted diff) +1 -1
-config ARM_SMMUV3_ACCEL
+config ARM_SMMUV3
Quoted 3 lines

     bool
-    depends on ARM_SMMUV3 && IOMMUFD
+    select ARM_SMMUV3_ACCEL if IOMMUFD

Zhenzhong has a variant in

https://lore.kernel.org/all/[email protected]/

I guess it also works

Eric

Quoted 32 lines


 config FSL_IMX6UL
     bool

Quoted 5 lines
Quoted 3 lines

KconfigDataError: contradiction between clauses when setting ARM_SMMUV3_ACCEL

Just curious, how to trigger these errors easily? Any scripts?

Try the windows build :

  ../configure --cross-prefix=x86_64-w64-mingw32- \
    --disable-sdl \
    --prefix=/path/to/install-mingw64 \
--target-list=aarch64-softmmu,ppc64-softmmu,x86_64-softmmu,s390x-softmmu \
    --disable-docs

problems such as :

../hw/arm/smmuv3-accel.h:14:10: fatal error: linux/iommufd.h: No such file or directory
   14 | #include <linux/iommufd.h>
      |          ^~~~~~~~~~~~~~~~~

should be fixed too.

Thanks,

C.