dadb59
From: Michal Privoznik <mprivozn@redhat.com>
dadb59
Date: Wed, 19 Nov 2014 16:25:56 +0100
dadb59
Subject: [PATCH] qemu: Support OVMF on armv7l aarch64 guests
dadb59
dadb59
Currently, we are whitelisting architectures, that we know how to run
dadb59
OVMF on. So far, only x86_64 was enabled. However, looking at qemu
dadb59
code, the same commandline can be used to enable OVMF for armv7l and
dadb59
aarch64.
dadb59
dadb59
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
dadb59
(cherry picked from commit 6d8054b68407a3385b33c867a425ad8278b0b8f0)
dadb59
---
dadb59
 src/qemu/qemu_command.c | 4 +++-
dadb59
 1 file changed, 3 insertions(+), 1 deletion(-)
dadb59
dadb59
diff --git a/src/qemu/qemu_command.c b/src/qemu/qemu_command.c
dadb59
index 34f6535..163f80a 100644
dadb59
--- a/src/qemu/qemu_command.c
dadb59
+++ b/src/qemu/qemu_command.c
dadb59
@@ -7681,7 +7681,9 @@ qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
dadb59
 
dadb59
     case VIR_DOMAIN_LOADER_TYPE_PFLASH:
dadb59
         /* UEFI is supported only for x86_64 currently */
dadb59
-        if (def->os.arch != VIR_ARCH_X86_64) {
dadb59
+        if (def->os.arch != VIR_ARCH_X86_64 &&
dadb59
+            def->os.arch != VIR_ARCH_ARMV7L &&
dadb59
+            def->os.arch != VIR_ARCH_AARCH64) {
dadb59
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
dadb59
                            _("pflash is not supported for %s guest architecture"),
dadb59
                            virArchToString(def->os.arch));