From c787425fdf2a4b42ffbff257123dfcb25528efbb Mon Sep 17 00:00:00 2001 From: Roger Pau Monne Date: Thu, 15 Oct 2015 19:23:57 +0200 Subject: [PATCH] libxc: fix the types used in xc_dom_image to build HVM guests MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fix the types used to store the memory parameters of an HVM guest, previously they defaulted to unsigned long on 32bit toolstack builds, which is wrong because a 32bit value cannot hold a 64bit memory address that crosses the 4GB boundary. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Ian Campbell Cc: Wei Liu Acked-by: Ian Campbell Acked-by: Wei Liu --- tools/libxc/include/xc_dom.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h index e52b023930..7cb6b0cbef 100644 --- a/tools/libxc/include/xc_dom.h +++ b/tools/libxc/include/xc_dom.h @@ -187,10 +187,10 @@ struct xc_dom_image { /* HVM specific fields. */ xen_pfn_t target_pages; - xen_pfn_t mmio_start; - xen_pfn_t mmio_size; - xen_pfn_t lowmem_end; - xen_pfn_t highmem_end; + xen_paddr_t mmio_start; + xen_paddr_t mmio_size; + xen_paddr_t lowmem_end; + xen_paddr_t highmem_end; /* Extra ACPI tables passed to HVMLOADER */ struct xc_hvm_firmware_module acpi_module; -- 2.30.2