[libvirt] [PATCH] Add aarch64 to virArch

Hello, This patch is for allowing 32-bit ARMs for aarch64 hosts. Exact 32-bit personality for aarch64 is aarch32, but there is no such arch in libvirt, so we use arvm7l instead. Matwey V. Kornilov (1): Add aarch64 to virArch src/lxc/lxc_container.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.1.4

Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com> --- src/lxc/lxc_container.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 99bd7e9..95c0cfc 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -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; } -- 2.1.4

On Fri, Feb 24, 2017 at 05:11:52PM +0300, Matwey V. Kornilov wrote:
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com> --- src/lxc/lxc_container.c | 2 ++ 1 file changed, 2 insertions(+)
diff --git a/src/lxc/lxc_container.c b/src/lxc/lxc_container.c index 99bd7e9..95c0cfc 100644 --- a/src/lxc/lxc_container.c +++ b/src/lxc/lxc_container.c @@ -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; }
ACK, I'll add this once the freeze is over Regards, Daniel -- |: http://berrange.com -o- http://www.flickr.com/photos/dberrange/ :| |: http://libvirt.org -o- http://virt-manager.org :| |: http://entangle-photo.org -o- http://search.cpan.org/~danberr/ :|
participants (2)
-
Daniel P. Berrange
-
Matwey V. Kornilov