]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
lxc: associate armv7l as 32-bit variant of aarch64
authorMatwey V. Kornilov <matwey.kornilov@gmail.com>
Fri, 24 Feb 2017 14:11:52 +0000 (17:11 +0300)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 3 Mar 2017 19:19:20 +0000 (19:19 +0000)
AArch64 kernels are technically capable of running armv7l binaries.
Though some vendors disable this feature during kernel build, we
need to allow it in LXC.

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>
src/lxc/lxc_container.c

index e306b6e582e44ed968ee1917f3a1707eb38152fb..a9363421f8095f11d5c66b4b4126808781e8593b 100644 (file)
@@ -2285,6 +2285,8 @@ virArch lxcContainerGetAlt32bitArch(virArch arch)
         return VIR_ARCH_MIPS;
     if (arch == VIR_ARCH_MIPS64EL)
         return VIR_ARCH_MIPSEL;
+    if (arch == VIR_ARCH_AARCH64)
+        return VIR_ARCH_ARMV7L;
 
     return VIR_ARCH_NONE;
 }