diff options
| author | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2022-02-15 16:25:32 +0000 |
|---|---|---|
| committer | Thomas Huth <thuth@redhat.com> | 2022-02-21 10:13:23 +0100 |
| commit | 7b172333f1be916a9bad1f40426dbe944730a9b2 (patch) | |
| tree | 6a88f04050e0cbca391c0d3e94ce44334dcee5a9 /tests/qtest/ivshmem-test.c | |
| parent | fedcc3793ef27ad17165536f1aa7e60700eb8067 (diff) | |
| download | focaccia-qemu-7b172333f1be916a9bad1f40426dbe944730a9b2.tar.gz focaccia-qemu-7b172333f1be916a9bad1f40426dbe944730a9b2.zip | |
tests/x86: Use 'pc' machine type for hotplug tests
Hotplug tests need a bridge setting up on q35, for now keep them on 'pc'. Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <20220215162537.605030-3-dgilbert@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'tests/qtest/ivshmem-test.c')
| -rw-r--r-- | tests/qtest/ivshmem-test.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/qtest/ivshmem-test.c b/tests/qtest/ivshmem-test.c index fe94dd3b96..4e8af42a9d 100644 --- a/tests/qtest/ivshmem-test.c +++ b/tests/qtest/ivshmem-test.c @@ -385,7 +385,12 @@ static void test_ivshmem_hotplug(void) QTestState *qts; const char *arch = qtest_get_arch(); - qts = qtest_init("-object memory-backend-ram,size=1M,id=mb1"); + if (strcmp(arch, "i386") == 0 || strcmp(arch, "x86_64") == 0) { + qts = qtest_init("-object memory-backend-ram,size=1M,id=mb1" + " -machine pc"); + } else { + qts = qtest_init("-object memory-backend-ram,size=1M,id=mb1"); + } qtest_qmp_device_add(qts, "ivshmem-plain", "iv1", "{'addr': %s, 'memdev': 'mb1'}", |