From: Roger Pau Monne Date: Tue, 12 Apr 2016 16:00:28 +0000 (+0200) Subject: xen: change the sizes of memory fields in the HVM start info to be 64bits X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~1280 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=247d38c870192c39442363ea633aa470e93fc186;p=xen.git xen: change the sizes of memory fields in the HVM start info to be 64bits At the moment the only consumer of this structure is x86, but other arches might also use it, so make all the fields 64bits. On x86 Xen will still try to place everything below the 4GiB boundary, but that might not be feasible in other arches. Signed-off-by: Roger Pau Monné Requested-by: Jan Beulich Acked-by: Jan Beulich Release-acked-by: Wei Liu --- diff --git a/tools/libxc/include/xc_dom.h b/tools/libxc/include/xc_dom.h index 6ebe946bfb..6cb10c4979 100644 --- a/tools/libxc/include/xc_dom.h +++ b/tools/libxc/include/xc_dom.h @@ -231,11 +231,11 @@ struct hvm_start_info { /* ("xEn3" with the 0x80 bit of the "E" set).*/ uint32_t version; /* Version of this structure. */ uint32_t flags; /* SIF_xxx flags. */ - uint32_t cmdline_paddr; /* Physical address of the command line. */ uint32_t nr_modules; /* Number of modules passed to the kernel. */ - uint32_t modlist_paddr; /* Physical address of an array of */ + uint64_t modlist_paddr; /* Physical address of an array of */ /* hvm_modlist_entry. */ - uint32_t rsdp_paddr; /* Physical address of the RSDP ACPI data */ + uint64_t cmdline_paddr; /* Physical address of the command line. */ + uint64_t rsdp_paddr; /* Physical address of the RSDP ACPI data */ /* structure. */ } __attribute__((packed)); diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h index 97a5ae5c45..6ed74ef3e4 100644 --- a/xen/include/public/xen.h +++ b/xen/include/public/xen.h @@ -829,16 +829,16 @@ typedef struct start_info start_info_t; * 8 +----------------+ * | flags | SIF_xxx flags. * 12 +----------------+ - * | cmdline_paddr | Physical address of the command line, - * | | a zero-terminated ASCII string. - * 16 +----------------+ * | nr_modules | Number of modules passed to the kernel. - * 20 +----------------+ + * 16 +----------------+ * | modlist_paddr | Physical address of an array of modules * | | (layout of the structure below). * 24 +----------------+ + * | cmdline_paddr | Physical address of the command line, + * | | a zero-terminated ASCII string. + * 32 +----------------+ * | rsdp_paddr | Physical address of the RSDP ACPI data structure. - * 28 +----------------+ + * 40 +----------------+ * * The layout of each entry in the module structure is the following: * @@ -853,8 +853,10 @@ typedef struct start_info start_info_t; * | reserved | * 32 +----------------+ * - * The address and size of the modules is a 64bit unsigned integer. However - * Xen will always try to place all modules below the 4GiB boundary. + * The address and sizes are always a 64bit little endian unsigned integer. + * + * NB: Xen on x86 will always try to place all the data below the 4GiB + * boundary. */ #define XEN_HVM_START_MAGIC_VALUE 0x336ec578