[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/3] qemu: caps: qemu-system-aarch64 supports armv7l



And it always has, so advertise it similarly to i686
---
 src/qemu/qemu_capabilities.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c
index 88c31fa..1e7bddb 100644
--- a/src/qemu/qemu_capabilities.c
+++ b/src/qemu/qemu_capabilities.c
@@ -697,6 +697,14 @@ virQEMUCapsFindBinaryForArch(virArch hostarch,
     if (ret && !virFileIsExecutable(ret))
         VIR_FREE(ret);
 
+    if (guestarch == VIR_ARCH_ARMV7L &&
+        !ret &&
+        hostarch == VIR_ARCH_AARCH64) {
+        ret = virFindFileInPath("qemu-system-aarch64");
+        if (ret && !virFileIsExecutable(ret))
+            VIR_FREE(ret);
+    }
+
     if (guestarch == VIR_ARCH_I686 &&
         !ret &&
         hostarch == VIR_ARCH_X86_64) {
-- 
2.4.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]