From 11eaee2aa2291a1d56556d538ac23b8156cf3388 Mon Sep 17 00:00:00 2001 From: Juergen Gross Date: Thu, 26 Nov 2015 08:32:26 +0100 Subject: [PATCH] libxc: correct domain builder for 64 bit guest with 32 bit tools Commit 8c45adec18e0512c3d34dcafb13414ecba21be6a ("create unmapped initrd in domain builder if supported") introduced an error for building a 64 bit guest with a 32 bit toolset. The initrd start address and size where stored in an unsigned long instead of using a 64 bit type. Signed-off-by: Juergen Gross --- tools/libxc/include/xc_dom.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h index 2176216..370dddd 100644 --- a/tools/libxc/include/xc_dom.h +++ b/tools/libxc/include/xc_dom.h @@ -99,8 +99,8 @@ struct xc_dom_image { xen_vaddr_t bsd_symtab_start; /* initrd parameters as specified in start_info page */ - unsigned long initrd_start; - unsigned long initrd_len; + uint64_t initrd_start; + uint64_t initrd_len; unsigned int alloc_bootstack; xen_vaddr_t virt_pgtab_end; -- 2.6.2