9119d9
From 38f1448f240c338003f595bd4cd99e47d0ab2501 Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <38f1448f240c338003f595bd4cd99e47d0ab2501@dist-git>
9119d9
From: Michal Privoznik <mprivozn@redhat.com>
9119d9
Date: Wed, 19 Nov 2014 18:59:14 +0100
9119d9
Subject: [PATCH] qemu: Support OVMF on armv7l aarch64 guests
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1165782
9119d9
9119d9
Currently, we are whitelisting architectures, that we know how to run
9119d9
OVMF on. So far, only x86_64 was enabled. However, looking at qemu
9119d9
code, the same commandline can be used to enable OVMF for armv7l and
9119d9
aarch64.
9119d9
9119d9
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
9119d9
(cherry picked from commit 6d8054b68407a3385b33c867a425ad8278b0b8f0)
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_command.c | 4 +++-
9119d9
 1 file changed, 3 insertions(+), 1 deletion(-)
9119d9
9119d9
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
9119d9
index 6c4a8b5..2b8eae0 100644
9119d9
--- a/src/qemu/qemu_command.c
9119d9
+++ b/src/qemu/qemu_command.c
9119d9
@@ -7643,7 +7643,9 @@ qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
9119d9
 
9119d9
     case VIR_DOMAIN_LOADER_TYPE_PFLASH:
9119d9
         /* UEFI is supported only for x86_64 currently */
9119d9
-        if (def->os.arch != VIR_ARCH_X86_64) {
9119d9
+        if (def->os.arch != VIR_ARCH_X86_64 &&
9119d9
+            def->os.arch != VIR_ARCH_ARMV7L &&
9119d9
+            def->os.arch != VIR_ARCH_AARCH64) {
9119d9
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
9119d9
                            _("pflash is not supported for %s guest architecture"),
9119d9
                            virArchToString(def->os.arch));
9119d9
-- 
9119d9
2.1.3
9119d9