Skip to contentSkip to conversation

x86/PVHv2: add XEN_ prefix to HVM_START_MAGIC_VALUE

PATCH In review Roger Pau Monne 2 participants 3 messages Feb 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/PVHv2: add XEN_ prefix to HVM_START_MAGIC_VALUE

Reported by: Jan Beulich <[email protected]>
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>

---
 tools/libxc/xc_dom_x86.c | 2 +-
 xen/include/public/xen.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
tools/libxc/xc_dom_x86.c +1 -1
index ac4dae5..e13a4aa 100644
@@ -1753,7 +1753,7 @@ static int bootlate_hvm(struct xc_dom_image *dom)
             start_info->nr_modules = 1;
         }
 
-        start_info->magic = HVM_START_MAGIC_VALUE;
+        start_info->magic = XEN_HVM_START_MAGIC_VALUE;
 
         munmap(start_page, start_info_size);
     }
xen/include/public/xen.h +2 -2
index ad00bf9..64ba7ab 100644
@@ -804,7 +804,7 @@ typedef struct start_info start_info_t;
  * of the address fields should be treated as not present.
  *
  *  0 +----------------+
- *    | magic          | Contains the magic value HVM_START_MAGIC_VALUE
+ *    | magic          | Contains the magic value XEN_HVM_START_MAGIC_VALUE
  *    |                | ("xEn3" with the 0x80 bit of the "E" set).
  *  4 +----------------+
  *    | version        | Version of this structure. Current version is 0. New
@@ -839,7 +839,7 @@ typedef struct start_info start_info_t;
  * 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.
  */
-#define HVM_START_MAGIC_VALUE 0x336ec578
+#define XEN_HVM_START_MAGIC_VALUE 0x336ec578
 
 /* New console union for dom0 introduced in 0x00030203. */
 #if __XEN_INTERFACE_VERSION__ < 0x00030203
Signature · 7 lines
2.5.4 (Apple Git-61)


_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
#2 lore raw
In reply to Roger Pau Monne

Ccing the tools maintainers, according to the output from get_maintaner.pl

Also adding the Linux folks.

El 19/2/16 a les 11:28, Roger Pau Monne ha escrit:

Quoted 38 lines

Reported by: Jan Beulich <[email protected]>
---
Cc: Jan Beulich <[email protected]>
Cc: Andrew Cooper <[email protected]>

---
 tools/libxc/xc_dom_x86.c | 2 +-
 xen/include/public/xen.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
tools/libxc/xc_dom_x86.c +1 -1
index ac4dae5..e13a4aa 100644
@@ -1753,7 +1753,7 @@ static int bootlate_hvm(struct xc_dom_image *dom)
             start_info->nr_modules = 1;
         }
 
-        start_info->magic = HVM_START_MAGIC_VALUE;
+        start_info->magic = XEN_HVM_START_MAGIC_VALUE;
 
         munmap(start_page, start_info_size);
     }
xen/include/public/xen.h +1 -1
index ad00bf9..64ba7ab 100644
@@ -804,7 +804,7 @@ typedef struct start_info start_info_t;
  * of the address fields should be treated as not present.
  *
  *  0 +----------------+
- *    | magic          | Contains the magic value HVM_START_MAGIC_VALUE
+ *    | magic          | Contains the magic value XEN_HVM_START_MAGIC_VALUE
  *    |                | ("xEn3" with the 0x80 bit of the "E" set).
  *  4 +----------------+
  *    | version        | Version of this structure. Current version is 0. New

xen/include/public/xen.h typedef struct start_info start_info_t; · line 845

Quoted 8 lines
xen/include/public/xen.h +1 -1
@@ -839,7 +839,7 @@ typedef struct start_info start_info_t;
  * 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.
  */
-#define HVM_START_MAGIC_VALUE 0x336ec578
+#define XEN_HVM_START_MAGIC_VALUE 0x336ec578
 
 /* New console union for dom0 introduced in 0x00030203. */
 #if __XEN_INTERFACE_VERSION__ < 0x00030203

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel