[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 3/4] tests/acpi/bios-table-test: add pcie root port device for DM
From: |
Ani Sinha |
Subject: |
[PATCH 3/4] tests/acpi/bios-table-test: add pcie root port device for DMAR test |
Date: |
Mon, 22 Aug 2022 14:38:10 +0530 |
In the previos commit, we are explicitly adding scopes for pcie root ports in
Root Port ATS capability reporting structure. We add a pcie root port in the
QEMU test command line for DMAR tests so that we can verify that the scope of
the root port has been correctly added and structure looks sane.
After the changes, the above structure will look like this:
+[078h 0120 2] Subtable Type : 0002 [Root Port ATS Capability]
+[07Ah 0122 2] Length : 0010
+
+[07Ch 0124 1] Flags : 00
+[07Dh 0125 1] Reserved : 00
+[07Eh 0126 2] PCI Segment Number : 0000
+
+[080h 0128 1] Device Scope Type : 02 [PCI Bridge Device]
+[081h 0129 1] Entry Length : 08
+[082h 0130 2] Reserved : 0000
+[084h 0132 1] Enumeration ID : 00
+[085h 0133 1] PCI Bus Number : 00
+
+[086h 0134 2] PCI Path : 02,00
+
+
Signed-off-by: Ani Sinha <ani@anisinha.ca>
---
tests/qtest/bios-tables-test.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 7c5f736b51..dc79eafbb5 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1141,7 +1141,8 @@ static void test_acpi_q35_kvm_dmar(void)
data.machine = MACHINE_Q35;
data.variant = ".dmar";
test_acpi_one("-machine kernel-irqchip=split -accel kvm"
- " -device intel-iommu,intremap=on,device-iotlb=on", &data);
+ " -device intel-iommu,intremap=on,device-iotlb=on"
+ " -device pcie-root-port,bus=pcie.0", &data);
free_test_data(&data);
}
--
2.25.1
- [PATCH 3/4] tests/acpi/bios-table-test: add pcie root port device for DMAR test, (continued)
- [PATCH 3/4] tests/acpi/bios-table-test: add pcie root port device for DMAR test, Ani Sinha, 2022/08/22
- [PATCH 4/4] tests/acpi/bios-tables-test: update DSDT and DMAR table blobs, Ani Sinha, 2022/08/22
- [PATCH 2/4] hw/acpi: set ATS capability explicitly per pcie root port, Ani Sinha, 2022/08/22
- [PATCH] hw/acpi: set ATS capability explicitly per pcie root port, Ani Sinha, 2022/08/22
- [PATCH 0/4] enable ATS per pcie root port, not globally, Ani Sinha, 2022/08/22
- [PATCH 3/4] tests/acpi/bios-table-test: add pcie root port device for DMAR test,
Ani Sinha <=
- [PATCH 4/4] tests/acpi/bios-tables-test: update DSDT and DMAR table blobs, Ani Sinha, 2022/08/22