diff mbox

libxc: elfloader: add support for ARM

Message ID 1386697185-23334-1-git-send-email-julien.grall@linaro.org
State New
Headers show

Commit Message

Julien Grall Dec. 10, 2013, 5:39 p.m. UTC
Signed-off-by: Julien Grall <julien.grall@linaro.org>
---
 tools/libxc/xc_dom_elfloader.c |    2 ++
 1 file changed, 2 insertions(+)

Comments

Ian Campbell Dec. 10, 2013, 5:45 p.m. UTC | #1
On Tue, 2013-12-10 at 17:39 +0000, Julien Grall wrote:
> Signed-off-by: Julien Grall <julien.grall@linaro.org>
> ---
>  tools/libxc/xc_dom_elfloader.c |    2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/tools/libxc/xc_dom_elfloader.c b/tools/libxc/xc_dom_elfloader.c
> index 9843b1f..2506190 100644
> --- a/tools/libxc/xc_dom_elfloader.c
> +++ b/tools/libxc/xc_dom_elfloader.c
> @@ -75,6 +75,8 @@ static char *xc_dom_guest_type(struct xc_dom_image *dom,
>          }
>      case EM_X86_64:
>          return "xen-3.0-x86_64";
> +    case EM_ARM:
> +        return "xen-3.0-armv7l";

Can you add EM_ARM64 (or whatever the defined name is, it might be
EM_AARCH64) at the same time please.

>      default:
>          return "xen-3.0-unknown";
>      }
Julien Grall Dec. 10, 2013, 6:17 p.m. UTC | #2
On 12/10/2013 05:45 PM, Ian Campbell wrote:
> On Tue, 2013-12-10 at 17:39 +0000, Julien Grall wrote:
>> Signed-off-by: Julien Grall <julien.grall@linaro.org>
>> ---
>>  tools/libxc/xc_dom_elfloader.c |    2 ++
>>  1 file changed, 2 insertions(+)
>>
>> diff --git a/tools/libxc/xc_dom_elfloader.c b/tools/libxc/xc_dom_elfloader.c
>> index 9843b1f..2506190 100644
>> --- a/tools/libxc/xc_dom_elfloader.c
>> +++ b/tools/libxc/xc_dom_elfloader.c
>> @@ -75,6 +75,8 @@ static char *xc_dom_guest_type(struct xc_dom_image *dom,
>>          }
>>      case EM_X86_64:
>>          return "xen-3.0-x86_64";
>> +    case EM_ARM:
>> +        return "xen-3.0-armv7l";
>
> Can you add EM_ARM64 (or whatever the defined name is, it might be
> EM_AARCH64) at the same time please.

Will do.

>>      default:
>>          return "xen-3.0-unknown";
>>      }
> 
> 
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
>
diff mbox

Patch

diff --git a/tools/libxc/xc_dom_elfloader.c b/tools/libxc/xc_dom_elfloader.c
index 9843b1f..2506190 100644
--- a/tools/libxc/xc_dom_elfloader.c
+++ b/tools/libxc/xc_dom_elfloader.c
@@ -75,6 +75,8 @@  static char *xc_dom_guest_type(struct xc_dom_image *dom,
         }
     case EM_X86_64:
         return "xen-3.0-x86_64";
+    case EM_ARM:
+        return "xen-3.0-armv7l";
     default:
         return "xen-3.0-unknown";
     }