]> xenbits.xensource.com Git - libvirt.git/commitdiff
qemu: Support OVMF on armv7l aarch64 guests
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2014 15:25:56 +0000 (16:25 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2014 16:31:07 +0000 (17:31 +0100)
Currently, we are whitelisting architectures, that we know how to run
OVMF on. So far, only x86_64 was enabled. However, looking at qemu
code, the same commandline can be used to enable OVMF for armv7l and
aarch64.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/qemu/qemu_command.c

index d2e699132843375014a21b1a65b883b18268972b..3d62d110a9b0023c6edd1a504a656af70685bbed 100644 (file)
@@ -7749,7 +7749,9 @@ qemuBuildDomainLoaderCommandLine(virCommandPtr cmd,
 
     case VIR_DOMAIN_LOADER_TYPE_PFLASH:
         /* UEFI is supported only for x86_64 currently */
-        if (def->os.arch != VIR_ARCH_X86_64) {
+        if (def->os.arch != VIR_ARCH_X86_64 &&
+            def->os.arch != VIR_ARCH_ARMV7L &&
+            def->os.arch != VIR_ARCH_AARCH64) {
             virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                            _("pflash is not supported for %s guest architecture"),
                            virArchToString(def->os.arch));