diff mbox series

[v2,09/11] tests/acpi: add microvm pcie test

Message ID 20200924062734.22978-10-kraxel@redhat.com
State Superseded
Headers show
Series microvm: add pcie support | expand

Commit Message

Gerd Hoffmann Sept. 24, 2020, 6:27 a.m. UTC
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
 tests/qtest/bios-tables-test.c | 12 ++++++++++++
 1 file changed, 12 insertions(+)

Comments

Gerd Hoffmann Sept. 25, 2020, 2:19 p.m. UTC | #1
> +static void test_acpi_microvm_pcie_tcg(void)

> +{

> +    test_data data;

> +

> +    test_acpi_microvm_prepare(&data);

> +    data.variant = ".pcie";

> +    test_acpi_one(" -machine microvm,acpi=on,rtc=off,pcie=on",

> +                  &data);

> +    free_test_data(&data);

> +}


Self-NACK, this blows up in CI due to host-phys-bits not being
constant.  Forcing tcg should fix that.  I'll go post v3 once
this series survived CI runs (monday probably).

take care,
  Gerd
diff mbox series

Patch

diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index cc4579d914e7..edb3ee5351de 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1063,6 +1063,17 @@  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";
+    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 = {
@@ -1181,6 +1192,7 @@  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);
+        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);