[libvirt] [PATCH] Add aarch64 to virArch

Matwey V. Kornilov posted 1 patch 7 years, 1 month ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/libvirt tags/patchew/1487945512-5495-2-git-send-email-matwey.kornilov@gmail.com
src/lxc/lxc_container.c | 2 ++
1 file changed, 2 insertions(+)
[libvirt] [PATCH] Add aarch64 to virArch
Posted by Matwey V. Kornilov 7 years, 1 month ago
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

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list
Re: [libvirt] [PATCH] Add aarch64 to virArch
Posted by Daniel P. Berrange 7 years ago
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