[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 7/8] tests/qtest/boot-serial-test: Allow running with HVF
From: |
Philippe Mathieu-Daudé |
Subject: |
[PATCH 7/8] tests/qtest/boot-serial-test: Allow running with HVF |
Date: |
Thu, 19 Jan 2023 11:05:36 +0100 |
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
tests/qtest/boot-serial-test.c | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/tests/qtest/boot-serial-test.c b/tests/qtest/boot-serial-test.c
index f8d0c684c2..4a2cbcf8e8 100644
--- a/tests/qtest/boot-serial-test.c
+++ b/tests/qtest/boot-serial-test.c
@@ -19,6 +19,7 @@
static bool has_tcg;
static bool has_kvm;
+static bool has_hvf;
static const uint8_t bios_avr[] = {
0x88, 0xe0, /* ldi r24, 0x08 */
@@ -273,6 +274,9 @@ static void test_machine(const void *data)
if (has_kvm) {
g_string_append(cmd, "-accel kvm ");
}
+ if (has_hvf) {
+ g_string_append(cmd, "-accel hvf ");
+ }
g_string_append(cmd, test->extra);
qts = qtest_init(cmd->str);
@@ -301,6 +305,7 @@ int main(int argc, char *argv[])
has_tcg = qtest_has_accel("tcg");
has_kvm = qtest_has_accel("kvm");
+ has_hvf = qtest_has_accel("hvf");
g_test_init(&argc, &argv, NULL);
--
2.38.1
- [PATCH 0/8] tests/qtest: Allow running boot-serial / migration with TCG disabled, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 1/8] tests/qtest/boot-serial-test: Constify tests[] array, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 2/8] tests/qtest/boot-serial-test: Build command line using GString API, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 7/8] tests/qtest/boot-serial-test: Allow running with HVF,
Philippe Mathieu-Daudé <=
- [PATCH 3/8] tests/qtest/boot-serial-test: Only use available accelerators, Philippe Mathieu-Daudé, 2023/01/19
- [PATCH 4/8] tests/qtest/migration-test: Build command line using GString API, Philippe Mathieu-Daudé, 2023/01/19
- [RFC PATCH 6/8] tests/qtest/libqtest: Allow checking for HVF accelerator, Philippe Mathieu-Daudé, 2023/01/19