On 27/11/2021 08.29, Eric Auger wrote:
Add the framework to test the virtio-iommu-pci device
and tests exercising the attach/detach, map/unmap API.
Signed-off-by: Eric Auger <eric.au...@redhat.com>
Tested-by: Jean-Philippe Brucker <jean-phili...@linaro.org>
Reviewed-by: Jean-Philippe Brucker <jean-phili...@linaro.org>
---
v5 -> v6:
- changed the expected value for domain.end (32 -> MAX_UINT32)
---
tests/qtest/libqos/meson.build | 1 +
tests/qtest/libqos/virtio-iommu.c | 126 ++++++++++++
tests/qtest/libqos/virtio-iommu.h | 40 ++++
tests/qtest/meson.build | 1 +
tests/qtest/virtio-iommu-test.c | 326 ++++++++++++++++++++++++++++++
5 files changed, 494 insertions(+)
create mode 100644 tests/qtest/libqos/virtio-iommu.c
create mode 100644 tests/qtest/libqos/virtio-iommu.h
create mode 100644 tests/qtest/virtio-iommu-test.c
Acked-by: Thomas Huth <th...@redhat.com>