tests: Update test_iommu_segments check

After updating the Linux kernel to 6.19.6 the second segment (segment=1)
is now under the 2nd IOMMU group (which it a more logical setup) and as
such the added device which is on that segment is in that second IOMMU
group.

The same check is made in test_vdpa_block so also test there.

Signed-off-by: Rob Bradford <rbradford@rivosinc.com>
This commit is contained in:
Rob Bradford 2025-11-12 17:05:34 +00:00
parent b3b51bd3a2
commit d586c844de

View file

@ -3007,7 +3007,7 @@ mod common_parallel {
);
assert_eq!(
guest
.ssh_command("ls /sys/kernel/iommu_groups/0/devices")
.ssh_command("ls /sys/kernel/iommu_groups/1/devices")
.unwrap()
.trim(),
"0001:00:01.0"
@ -7126,7 +7126,7 @@ mod common_parallel {
);
assert_eq!(
guest
.ssh_command("ls /sys/kernel/iommu_groups/0/devices")
.ssh_command("ls /sys/kernel/iommu_groups/1/devices")
.unwrap()
.trim(),
"0001:00:01.0"