hw/arm/virt-acpi-build: Add smmuv3 node in IORT table
authorPrem Mallappa <prem.mallappa@broadcom.com>
Fri, 4 May 2018 17:05:52 +0000 (18:05 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Fri, 4 May 2018 17:52:58 +0000 (18:52 +0100)
commita703b4f6c1ee25090384fe75074f2571d7b69e02
tree55aed162a61b04cec0a89e8221a3af0adf354e4d
parent584105eab2f49132b00c4d4baa0d94e0a4baed38
hw/arm/virt-acpi-build: Add smmuv3 node in IORT table

This patch builds the smmuv3 node in the ACPI IORT table.

The RID space of the root complex, which spans 0x0-0x10000
maps to streamid space 0x0-0x10000 in smmuv3, which in turn
maps to deviceid space 0x0-0x10000 in the ITS group.

The guest must feature the IOMMU probe deferral series
(https://lkml.org/lkml/2017/4/10/214) which fixes streamid
multiple lookup. This bug is not related to the SMMU emulation.

Signed-off-by: Prem Mallappa <prem.mallappa@broadcom.com>
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Shannon Zhao <zhaoshenglong@huawei.com>
Message-id: 1524665762-31355-14-git-send-email-eric.auger@redhat.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
hw/arm/virt-acpi-build.c
include/hw/acpi/acpi-defs.h