[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v7 19/21] tests/acpi: add microvm test
From: |
Gerd Hoffmann |
Subject: |
[PATCH v7 19/21] tests/acpi: add microvm test |
Date: |
Tue, 8 Sep 2020 14:10:48 +0200 |
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
---
tests/qtest/bios-tables-test.c | 15 +++++++++++++++
1 file changed, 15 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 1779af1cc889..a9c8d478aee3 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1044,6 +1044,20 @@ static void test_acpi_virt_tcg_memhp(void)
}
+static void test_acpi_microvm_tcg(void)
+{
+ test_data data;
+
+ memset(&data, 0, sizeof(data));
+ data.machine = "microvm";
+ data.required_struct_types = NULL; /* no smbios */
+ data.required_struct_types_len = 0;
+ data.blkdev = "virtio-blk-device";
+ test_acpi_one(" -machine microvm,acpi=on,rtc=off",
+ &data);
+ free_test_data(&data);
+}
+
static void test_acpi_virt_tcg_numamem(void)
{
test_data data = {
@@ -1161,6 +1175,7 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/q35/dimmpxm", test_acpi_q35_tcg_dimm_pxm);
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);
} 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);
--
2.27.0
- [PATCH v7 10/21] microvm/acpi: use GSI 16-23 for virtio, (continued)
- [PATCH v7 10/21] microvm/acpi: use GSI 16-23 for virtio, Gerd Hoffmann, 2020/09/08
- [PATCH v7 12/21] microvm/acpi: disable virtio-mmio cmdline hack, Gerd Hoffmann, 2020/09/08
- [PATCH v7 07/21] microvm: make virtio irq base runtime configurable, Gerd Hoffmann, 2020/09/08
- [PATCH v7 13/21] x86: constify x86_machine_is_*_enabled, Gerd Hoffmann, 2020/09/08
- [PATCH v7 16/21] microvm: wire up hotplug, Gerd Hoffmann, 2020/09/08
- [PATCH v7 05/21] acpi: ged: add x86 device variant., Gerd Hoffmann, 2020/09/08
- [PATCH v7 18/21] tests/acpi: allow override blkdev, Gerd Hoffmann, 2020/09/08
- [PATCH v7 21/21] microvm: enable ramfb, Gerd Hoffmann, 2020/09/08
- [PATCH v7 14/21] x86: move acpi_dev from pc/microvm, Gerd Hoffmann, 2020/09/08
- [PATCH v7 19/21] tests/acpi: add microvm test,
Gerd Hoffmann <=
- [PATCH v7 03/21] seabios: add bios-microvm.bin binary, Gerd Hoffmann, 2020/09/08
- [PATCH v7 09/21] microvm/acpi: add acpi_dsdt_add_virtio() for x86, Gerd Hoffmann, 2020/09/08
- [PATCH v7 20/21] tests/acpi: update expected data files for microvm, Gerd Hoffmann, 2020/09/08
- [PATCH v7 11/21] microvm/acpi: use seabios with acpi=on, Gerd Hoffmann, 2020/09/08
- [PATCH v7 08/21] microvm/acpi: add minimal acpi support, Gerd Hoffmann, 2020/09/08
- [PATCH v7 15/21] x86: move cpu hotplug from pc to x86, Gerd Hoffmann, 2020/09/08
- [PATCH v7 17/21] tests/acpi: allow microvm test data updates., Gerd Hoffmann, 2020/09/08