summary refs log tree commit diff stats
path: root/tests/qtest
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2024-03-07 14:43:08 +0100
committerMichael S. Tsirkin <mst@redhat.com>2024-03-12 17:59:03 -0400
commit9b588be373ad01e7ce09e25f69f66b811af0b799 (patch)
treefdb68f1aad0c409817b50464dab1ef967a7dc984 /tests/qtest
parent01e7e4921ccebb81cebc69eb648040a57be4f5ff (diff)
downloadfocaccia-qemu-9b588be373ad01e7ce09e25f69f66b811af0b799.tar.gz
focaccia-qemu-9b588be373ad01e7ce09e25f69f66b811af0b799.zip
hw/i386/q35: Set virtio-iommu aw-bits default value to 39
Currently the default input range can extend to 64 bits. On x86,
when the virtio-iommu protects vfio devices, the physical iommu
may support only 39 bits. Let's set the default to 39, as done
for the intel-iommu.

We use hw_compat_8_2 to handle the compatibility for machines
before 9.0 which used to have a virtio-iommu default input range
of 64 bits.

Of course if aw-bits is set from the command line, the default
is overriden.

Signed-off-by: Eric Auger <eric.auger@redhat.com>
Message-Id: <20240307134445.92296-8-eric.auger@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Diffstat (limited to 'tests/qtest')
-rw-r--r--tests/qtest/virtio-iommu-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/qtest/virtio-iommu-test.c b/tests/qtest/virtio-iommu-test.c
index 068e7a9e6c..afb225971d 100644
--- a/tests/qtest/virtio-iommu-test.c
+++ b/tests/qtest/virtio-iommu-test.c
@@ -34,7 +34,7 @@ static void pci_config(void *obj, void *data, QGuestAllocator *t_alloc)
     uint8_t bypass = qvirtio_config_readb(dev, 36);
 
     g_assert_cmpint(input_range_start, ==, 0);
-    g_assert_cmphex(input_range_end, ==, UINT64_MAX);
+    g_assert_cmphex(input_range_end, >=, UINT32_MAX);
     g_assert_cmpint(domain_range_start, ==, 0);
     g_assert_cmpint(domain_range_end, ==, UINT32_MAX);
     g_assert_cmpint(bypass, ==, 1);