Add aarch64 to virArch

Message ID 1487945512-5495-2-git-send-email-matwey.kornilov@gmail.com
State New
Headers show

Commit Message

Matwey V. Kornilov Feb. 24, 2017, 2:11 p.m.
Signed-off-by: Matwey V. Kornilov <matwey.kornilov@gmail.com>

---
 src/lxc/lxc_container.c | 2 ++
 1 file changed, 2 insertions(+)

-- 
2.1.4

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Comments

Daniel P. Berrange March 2, 2017, 1:19 p.m. | #1
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/ :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Patch hide | download patch | download mbox

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;
 }