hw/arm/virt: Default to two-stage SMMU from virt-9.2
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 3 Sep 2024 16:22:17 +0000 (17:22 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 5 Sep 2024 12:12:36 +0000 (13:12 +0100)
commit8a934f1c4a115c41d1d56efd319f2085e401ad31
tree84f49444742bece5b5093506ee70a70f75a6c74e
parent44df6d061386808052dfc490bb0158b011933d5e
hw/arm/virt: Default to two-stage SMMU from virt-9.2

Now that our SMMU model supports enabling both stages of translation
at once, we can enable this in the virt board.  This is no change in
behaviour for guests, because if they simply ignore stage 2 and never
configure it then it has no effect.  For the usual backwards
compatibility reasons we enable this only for machine types starting
with 9.2.

(Note that the SMMU is disabled by default on the virt board and is
only created if the user passes the 'iommu=smmuv3' machine option.)

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Message-id: 20240816161350.3706332-4-peter.maydell@linaro.org
hw/arm/virt.c
include/hw/arm/virt.h