[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing for
From: |
Sunil V L |
Subject: |
[PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V |
Date: |
Mon, 8 Jul 2024 17:17:40 +0530 |
Add basic ACPI table test case for RISC-V.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
Reviewed-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
---
tests/qtest/bios-tables-test.c | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index 498e0e35d9..36e5c0adde 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1963,6 +1963,28 @@ static void test_acpi_microvm_acpi_erst(void)
}
#endif /* CONFIG_POSIX */
+static void test_acpi_riscv64_virt_tcg(void)
+{
+ test_data data = {
+ .machine = "virt",
+ .arch = "riscv64",
+ .tcg_only = true,
+ .uefi_fl1 = "pc-bios/edk2-riscv-code.fd",
+ .uefi_fl2 = "pc-bios/edk2-riscv-vars.fd",
+ .cd = "tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2",
+ .ram_start = 0x80000000ULL,
+ .scan_len = 128ULL * 1024 * 1024,
+ };
+
+ /*
+ * RHCT will have ISA string encoded. To reduce the effort
+ * of updating expected AML file for any new default ISA extension,
+ * use the profile rva22s64.
+ */
+ test_acpi_one("-cpu rva22s64 ", &data);
+ free_test_data(&data);
+}
+
static void test_acpi_aarch64_virt_tcg(void)
{
test_data data = {
@@ -2441,6 +2463,10 @@ int main(int argc, char *argv[])
qtest_add_func("acpi/virt/viot", test_acpi_aarch64_virt_viot);
}
}
+ } else if (strcmp(arch, "riscv64") == 0) {
+ if (has_tcg && qtest_has_device("virtio-blk-pci")) {
+ qtest_add_func("acpi/virt", test_acpi_riscv64_virt_tcg);
+ }
}
ret = g_test_run();
boot_sector_cleanup(disk);
--
2.43.0
- Re: [PATCH v2 2/9] hw/riscv/virt-acpi-build.c: Update the HID of RISC-V UART, (continued)
[PATCH v2 6/9] tests/qtest/bios-tables-test.c: Remove the fall back path, Sunil V L, 2024/07/08
[PATCH v2 7/9] tests/acpi: Add empty ACPI data files for RISC-V, Sunil V L, 2024/07/08
[PATCH v2 3/9] tests/acpi: Allow DSDT acpi table changes for aarch64, Sunil V L, 2024/07/08
[PATCH v2 5/9] tests/acpi: update expected DSDT blob for aarch64 and microvm, Sunil V L, 2024/07/08
[PATCH v2 8/9] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V,
Sunil V L <=
[PATCH v2 9/9] tests/acpi: Add expected ACPI AML files for RISC-V, Sunil V L, 2024/07/08
Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Igor Mammedov, 2024/07/12
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Daniel P . Berrangé, 2024/07/12
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Igor Mammedov, 2024/07/12
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Michael S. Tsirkin, 2024/07/14
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Igor Mammedov, 2024/07/15
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Sunil V L, 2024/07/16
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Igor Mammedov, 2024/07/16
- Re: [PATCH v2 0/9] RISC-V: ACPI: Namespace updates, Igor Mammedov, 2024/07/16