]> Git Repo - qemu.git/commitdiff
tests/acpi: add microvm pcie test
authorGerd Hoffmann <[email protected]>
Mon, 28 Sep 2020 10:42:54 +0000 (12:42 +0200)
committerGerd Hoffmann <[email protected]>
Wed, 30 Sep 2020 09:29:56 +0000 (11:29 +0200)
Signed-off-by: Gerd Hoffmann <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Message-id: 20200928104256[email protected]

tests/qtest/bios-tables-test.c

index 7be2b3131e16a193c773bc6c46f58b9001640bea..edf672d26f0b21d5778af6cdf4f2b9c61e80a0de 100644 (file)
@@ -1091,6 +1091,18 @@ static void test_acpi_microvm_tcg(void)
     free_test_data(&data);
 }
 
+static void test_acpi_microvm_pcie_tcg(void)
+{
+    test_data data;
+
+    test_acpi_microvm_prepare(&data);
+    data.variant = ".pcie";
+    data.tcg_only = true; /* need constant host-phys-bits */
+    test_acpi_one(" -machine microvm,acpi=on,rtc=off,pcie=on",
+                  &data);
+    free_test_data(&data);
+}
+
 static void test_acpi_virt_tcg_numamem(void)
 {
     test_data data = {
@@ -1213,6 +1225,9 @@ int main(int argc, char *argv[])
         qtest_add_func("acpi/piix4/acpihmat", test_acpi_piix4_tcg_acpi_hmat);
         qtest_add_func("acpi/q35/acpihmat", test_acpi_q35_tcg_acpi_hmat);
         qtest_add_func("acpi/microvm", test_acpi_microvm_tcg);
+        if (strcmp(arch, "x86_64") == 0) {
+            qtest_add_func("acpi/microvm/pcie", test_acpi_microvm_pcie_tcg);
+        }
     } else if (strcmp(arch, "aarch64") == 0) {
         qtest_add_func("acpi/virt", test_acpi_virt_tcg);
         qtest_add_func("acpi/virt/numamem", test_acpi_virt_tcg_numamem);
This page took 0.029359 seconds and 4 git commands to generate.