From: Sunil V L <sunilvl@ventanamicro.com>
To: qemu-devel@nongnu.org, qemu-arm@nongnu.org, qemu-riscv@nongnu.org
Cc: "Paolo Bonzini" <pbonzini@redhat.com>,
"Marc-André Lureau" <marcandre.lureau@redhat.com>,
"Daniel P . Berrangé" <berrange@redhat.com>,
"Thomas Huth" <thuth@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>,
"Gerd Hoffmann" <kraxel@redhat.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
"Igor Mammedov" <imammedo@redhat.com>,
"Ani Sinha" <anisinha@redhat.com>,
"Laurent Vivier" <lvivier@redhat.com>,
"Daniel Henrique Barboza" <dbarboza@ventanamicro.com>,
"Alistair Francis" <alistair23@gmail.com>,
"Andrew Jones" <ajones@ventanamicro.com>,
"Anup Patel" <apatel@ventanamicro.com>,
"Haibo1 Xu" <haibo1.xu@intel.com>,
"Sunil V L" <sunilvl@ventanamicro.com>
Subject: [PATCH 12/12] tests/qtest/bios-tables-test.c: Enable basic testing for RISC-V
Date: Fri, 15 Mar 2024 18:39:24 +0530 [thread overview]
Message-ID: <20240315130924.2378849-10-sunilvl@ventanamicro.com> (raw)
In-Reply-To: <20240315130924.2378849-1-sunilvl@ventanamicro.com>
Add basic ACPI table testing for RISC-V.
Signed-off-by: Sunil V L <sunilvl@ventanamicro.com>
---
tests/qtest/bios-tables-test.c | 28 ++++++++++++++++++++++++++++
1 file changed, 28 insertions(+)
diff --git a/tests/qtest/bios-tables-test.c b/tests/qtest/bios-tables-test.c
index c492438ced..033acc8958 100644
--- a/tests/qtest/bios-tables-test.c
+++ b/tests/qtest/bios-tables-test.c
@@ -1923,6 +1923,30 @@ 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",
+ .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. Once profile is ratified, there may
+ * not be new extension possible.
+ */
+ test_acpi_one("-cpu rva22s64 -device virtio-blk-device,drive=hd0 "
+ "-drive file=tests/data/uefi-boot-images/bios-tables-test.riscv64.iso.qcow2,id=hd0",
+ &data);
+ free_test_data(&data);
+}
+
static void test_acpi_aarch64_virt_tcg(void)
{
test_data data = {
@@ -2342,6 +2366,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.40.1
next prev parent reply other threads:[~2024-03-15 13:14 UTC|newest]
Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-15 13:09 [PATCH 03/12] uefi-test-tools: Add support for python based build script Sunil V L
2024-03-15 13:09 ` [PATCH 04/12] tests/data/uefi-boot-images: Add RISC-V ISO image Sunil V L
2024-04-29 3:44 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 05/12] qtest: bios-tables-test: Rename aarch64 tests with aarch64 in them Sunil V L
2024-04-29 3:45 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 06/12] tests/qtest/bios-tables-test.c: Add support for arch in path Sunil V L
2024-04-29 3:47 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 07/12] tests/data/acpi/virt: Move ACPI tables under aarch64 Sunil V L
2024-04-29 3:47 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 08/12] meson.build: Add RISC-V to the edk2-target list Sunil V L
2024-04-29 3:48 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 09/12] pc-bios/meson.build: Add support for RISC-V in unpack_edk2_blobs Sunil V L
2024-04-29 3:49 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 10/12] tests/data/acpi/rebuild-expected-aml.sh: Add RISC-V Sunil V L
2024-04-29 3:52 ` Alistair Francis
2024-03-15 13:09 ` [PATCH 11/12] tests/data/acpi/virt/riscv64: Add expected ACPI tables for RISC-V Sunil V L
2024-04-29 3:52 ` Alistair Francis
2024-03-15 13:09 ` Sunil V L [this message]
2024-04-29 3:53 ` [PATCH 12/12] tests/qtest/bios-tables-test.c: Enable basic testing " Alistair Francis
2024-03-15 14:17 ` [PATCH 03/12] uefi-test-tools: Add support for python based build script Gerd Hoffmann
2024-03-18 5:25 ` Sunil V L
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240315130924.2378849-10-sunilvl@ventanamicro.com \
--to=sunilvl@ventanamicro.com \
--cc=ajones@ventanamicro.com \
--cc=alistair23@gmail.com \
--cc=anisinha@redhat.com \
--cc=apatel@ventanamicro.com \
--cc=berrange@redhat.com \
--cc=dbarboza@ventanamicro.com \
--cc=haibo1.xu@intel.com \
--cc=imammedo@redhat.com \
--cc=kraxel@redhat.com \
--cc=lvivier@redhat.com \
--cc=marcandre.lureau@redhat.com \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=thuth@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.