From cb8e3ab3f9e95c5054e09d6d8b656dd2635d771f Mon Sep 17 00:00:00 2001 From: Jim Fehlig Date: Fri, 14 Apr 2023 10:48:49 -0600 Subject: [PATCH] qemu: Change default machine type for ARM It's quite difficult, if not impossible, to create a usable ARM VMs using the current default machine type of 'integratorcp'. Change the default to the more appropriate and virtualization friendly 'virt' machine type. Signed-off-by: Jim Fehlig Reviewed-by: Andrea Bolognani --- src/qemu/qemu_capabilities.c | 6 +++--- tests/domaincapsdata/qemu_4.2.0.aarch64.xml | 14 ++++++++++---- tests/domaincapsdata/qemu_5.0.0.aarch64.xml | 14 ++++++++++---- tests/domaincapsdata/qemu_5.2.0.aarch64.xml | 14 ++++++++++---- tests/domaincapsdata/qemu_6.0.0.aarch64.xml | 14 ++++++++++---- tests/domaincapsdata/qemu_6.2.0.aarch64.xml | 14 ++++++++++---- .../domaincapsdata/qemu_7.0.0-hvf.aarch64+hvf.xml | 6 ++++-- tests/domaincapsdata/qemu_7.0.0.aarch64.xml | 14 ++++++++++---- tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml | 4 ++-- tests/qemucapabilitiesdata/caps_5.0.0_aarch64.xml | 8 ++++---- tests/qemucapabilitiesdata/caps_5.2.0_aarch64.xml | 8 ++++---- tests/qemucapabilitiesdata/caps_6.0.0_aarch64.xml | 8 ++++---- tests/qemucapabilitiesdata/caps_6.2.0_aarch64.xml | 8 ++++---- .../caps_7.0.0_aarch64+hvf.xml | 8 ++++---- tests/qemucapabilitiesdata/caps_7.0.0_aarch64.xml | 8 ++++---- 15 files changed, 93 insertions(+), 55 deletions(-) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index ea6821e99f..3af88010dc 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -2687,10 +2687,10 @@ static const char *preferredMachines[] = NULL, /* VIR_ARCH_NONE (not a real arch :) */ "clipper", /* VIR_ARCH_ALPHA */ "integratorcp", /* VIR_ARCH_ARMV6L */ - "integratorcp", /* VIR_ARCH_ARMV7L */ - "integratorcp", /* VIR_ARCH_ARMV7B */ + "virt", /* VIR_ARCH_ARMV7L */ + "virt", /* VIR_ARCH_ARMV7B */ - "integratorcp", /* VIR_ARCH_AARCH64 */ + "virt", /* VIR_ARCH_AARCH64 */ "axis-dev88", /* VIR_ARCH_CRIS */ "pc", /* VIR_ARCH_I686 */ NULL, /* VIR_ARCH_ITANIUM (doesn't exist in QEMU any more) */ diff --git a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml index 533b08606e..981a06856d 100644 --- a/tests/domaincapsdata/qemu_4.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_4.2.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-4.2 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -183,7 +185,11 @@ - + + + 3 + + diff --git a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml index e38a2a01d2..f84aec44c9 100644 --- a/tests/domaincapsdata/qemu_5.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.0.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-5.0 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -196,7 +198,11 @@ - + + + 3 + + diff --git a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml index e38a2a01d2..af01bdfbe9 100644 --- a/tests/domaincapsdata/qemu_5.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_5.2.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-5.2 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -196,7 +198,11 @@ - + + + 3 + + diff --git a/tests/domaincapsdata/qemu_6.0.0.aarch64.xml b/tests/domaincapsdata/qemu_6.0.0.aarch64.xml index f1d4da661f..67889c4572 100644 --- a/tests/domaincapsdata/qemu_6.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_6.0.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-6.0 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -198,7 +200,11 @@ - + + + 3 + + diff --git a/tests/domaincapsdata/qemu_6.2.0.aarch64.xml b/tests/domaincapsdata/qemu_6.2.0.aarch64.xml index 1f32f6d59a..241e893df6 100644 --- a/tests/domaincapsdata/qemu_6.2.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_6.2.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-6.2 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -205,7 +207,11 @@ - + + + 3 + + diff --git a/tests/domaincapsdata/qemu_7.0.0-hvf.aarch64+hvf.xml b/tests/domaincapsdata/qemu_7.0.0-hvf.aarch64+hvf.xml index 479f44c446..bcabf66d2a 100644 --- a/tests/domaincapsdata/qemu_7.0.0-hvf.aarch64+hvf.xml +++ b/tests/domaincapsdata/qemu_7.0.0-hvf.aarch64+hvf.xml @@ -1,11 +1,13 @@ /usr/bin/qemu-system-aarch64 hvf - integratorcp + virt-7.0 aarch64 - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd diff --git a/tests/domaincapsdata/qemu_7.0.0.aarch64.xml b/tests/domaincapsdata/qemu_7.0.0.aarch64.xml index 01b2765242..6aa5e78612 100644 --- a/tests/domaincapsdata/qemu_7.0.0.aarch64.xml +++ b/tests/domaincapsdata/qemu_7.0.0.aarch64.xml @@ -1,12 +1,14 @@ /usr/bin/qemu-system-aarch64 kvm - integratorcp + virt-7.0 aarch64 - + - + + efi + /usr/share/AAVMF/AAVMF_CODE.fd /usr/share/AAVMF/AAVMF32_CODE.fd @@ -204,7 +206,11 @@ - + + + 3 + + diff --git a/tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml index f87962a379..6a7f33e3c6 100644 --- a/tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_4.2.0_aarch64.xml @@ -173,6 +173,7 @@ + @@ -204,7 +205,6 @@ - @@ -302,6 +302,7 @@ + @@ -333,7 +334,6 @@ - diff --git a/tests/qemucapabilitiesdata/caps_5.0.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_5.0.0_aarch64.xml index 09619133c4..a2b7214b8a 100644 --- a/tests/qemucapabilitiesdata/caps_5.0.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.0.0_aarch64.xml @@ -187,7 +187,7 @@ - + @@ -203,6 +203,7 @@ + @@ -253,7 +254,6 @@ - @@ -321,7 +321,7 @@ - + @@ -337,6 +337,7 @@ + @@ -387,7 +388,6 @@ - diff --git a/tests/qemucapabilitiesdata/caps_5.2.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_5.2.0_aarch64.xml index effcf4e96a..b1c5c21abb 100644 --- a/tests/qemucapabilitiesdata/caps_5.2.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_5.2.0_aarch64.xml @@ -195,7 +195,7 @@ - + @@ -215,6 +215,7 @@ + @@ -232,7 +233,6 @@ - @@ -340,7 +340,7 @@ - + @@ -360,6 +360,7 @@ + @@ -377,7 +378,6 @@ - diff --git a/tests/qemucapabilitiesdata/caps_6.0.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_6.0.0_aarch64.xml index 651cdc8095..6faf407a97 100644 --- a/tests/qemucapabilitiesdata/caps_6.0.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_6.0.0_aarch64.xml @@ -206,7 +206,7 @@ - + @@ -219,7 +219,6 @@ - @@ -227,6 +226,7 @@ + @@ -359,7 +359,7 @@ - + @@ -372,7 +372,6 @@ - @@ -380,6 +379,7 @@ + diff --git a/tests/qemucapabilitiesdata/caps_6.2.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_6.2.0_aarch64.xml index fd3d1602a1..e312801b89 100644 --- a/tests/qemucapabilitiesdata/caps_6.2.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_6.2.0_aarch64.xml @@ -220,7 +220,7 @@ - + @@ -242,6 +242,7 @@ + @@ -281,7 +282,6 @@ - @@ -382,7 +382,7 @@ - + @@ -404,6 +404,7 @@ + @@ -443,7 +444,6 @@ - diff --git a/tests/qemucapabilitiesdata/caps_7.0.0_aarch64+hvf.xml b/tests/qemucapabilitiesdata/caps_7.0.0_aarch64+hvf.xml index 2e8495dcdd..3517e81d15 100644 --- a/tests/qemucapabilitiesdata/caps_7.0.0_aarch64+hvf.xml +++ b/tests/qemucapabilitiesdata/caps_7.0.0_aarch64+hvf.xml @@ -229,7 +229,7 @@ - + @@ -251,6 +251,7 @@ + @@ -329,7 +330,6 @@ - @@ -394,7 +394,7 @@ - + @@ -416,6 +416,7 @@ + @@ -494,7 +495,6 @@ - diff --git a/tests/qemucapabilitiesdata/caps_7.0.0_aarch64.xml b/tests/qemucapabilitiesdata/caps_7.0.0_aarch64.xml index 1420cc844d..58db75d1d7 100644 --- a/tests/qemucapabilitiesdata/caps_7.0.0_aarch64.xml +++ b/tests/qemucapabilitiesdata/caps_7.0.0_aarch64.xml @@ -229,7 +229,7 @@ - + @@ -251,6 +251,7 @@ + @@ -329,7 +330,6 @@ - @@ -394,7 +394,7 @@ - + @@ -416,6 +416,7 @@ + @@ -494,7 +495,6 @@ -