@samitouri / QOSamiQemu / commits / 8addbdb793

hw/arm/smmuv3: Update ATC invalidation check

Use smmuv3_ats_enabled() to determine whether ATS is enabled for the guest when handling an ATC invalidation command, as setting the ATS property value to 'auto' will resolve to ATS being detected as enabled in the ATC invalidation check otherwise. Fixes: f7f5013a55a3 ("hw/arm/smmuv3-accel: Add support for ATS") Reported-by: Shameer Kolothum <skolothumtho@nvidia.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Reviewed-by: Shameer Kolothum <skolothumtho@nvidia.com> Signed-off-by: Nathan Chen <nathanc@nvidia.com> Tested-by: Eric Auger <eric.auger@redhat.com> Message-id: 20260608174900.2227340-2-nathanc@nvidia.com Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Nathan Chen committed Jun 8, 2026 at 10:48 UTC 8addbdb793b783228ab22867ac5e2d59ea6662a7
1 file changed +1 -1
hw/arm/smmuv3.c
+1 -1
@@ -1528,7 +1528,7 @@ static int smmuv3_cmdq_consume(SMMUv3State *s, Error **errp)
1528 {
1529 SMMUDevice *sdev = smmu_find_sdev(bs, CMD_SID(&cmd));
1530
1531 - if (!sdev || !s->ats) {
1531 + if (!sdev || !smmuv3_ats_enabled(s)) {
1532 trace_smmuv3_unhandled_cmd(type);
1533 break;
1534 }