]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
libxc: fix the types used in xc_dom_image to build HVM guests
authorRoger Pau Monne <roger.pau@citrix.com>
Thu, 15 Oct 2015 17:23:57 +0000 (19:23 +0200)
committerIan Campbell <ian.campbell@citrix.com>
Fri, 16 Oct 2015 08:54:44 +0000 (09:54 +0100)
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é <roger.pau@citrix.com>
Cc: Ian Jackson <ian.jackson@eu.citrix.com>
Cc: Ian Campbell <ian.campbell@citrix.com>
Cc: Wei Liu <wei.liu2@citrix.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxc/include/xc_dom.h

index e52b0239302b8dd68051b373e8d14ffc115285bb..7cb6b0cbefcc12f988ff4d68916c07da70ceebc9 100644 (file)
@@ -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;