Skip to contentSkip to conversation

docs/misc/hvmlite: Sync up hvm_start_info data structure

PATCH In review Anthony PERARD 2 participants 3 messages Jul 18, 2016 – Jul 19, 2016

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs/misc/hvmlite: Sync up hvm_start_info data structure

It as been modified by:
3c8d890 x86/PVHv2: update the start info structure layout
247d38c xen: change the sizes of memory fields in the HVM start info to be 64bits

---
 docs/misc/hvmlite.markdown | 15 ++++++++++-----
 1 file changed, 10 insertions(+), 5 deletions(-)
docs/misc/hvmlite.markdown +10 -5
index c1b75c6..40199c5 100644
@@ -41,19 +41,24 @@ The format of the boot start info structure is the following (pointed to
 be %ebx):
 
     struct hvm_start_info {
-    #define HVM_START_MAGIC_VALUE 0x336ec578
+    #define XEN_HVM_START_MAGIC_VALUE 0x336ec578
         uint32_t magic;             /* Contains the magic value 0x336ec578       */
                                     /* ("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.                        */
+        uint64_t cmdline_paddr;     /* Physical address of the command line.     */
+        uint64_t rsdp_paddr;        /* Physical address of the RSDP ACPI data    */
+                                    /* structure.                                */
     };
 
     struct hvm_modlist_entry {
-        uint32_t paddr;             /* Physical address of the module.           */
-        uint32_t size;              /* Size of the module in bytes.              */
+        uint64_t paddr;             /* Physical address of the module.           */
+        uint64_t size;              /* Size of the module in bytes.              */
+        uint64_t cmdline_paddr;     /* Physical address of the command line.     */
+        uint64_t reserved;
     };
 
 Other relevant information needed in order to boot a guest kernel
Signature · 7 lines
Anthony PERARD


_______________________________________________
Xen-devel mailing list
[email protected]
https://lists.xen.org/xen-devel
#1 lore raw
Quoted 5 lines · Anthony PERARD

It as been modified by:
3c8d890 x86/PVHv2: update the start info structure layout
247d38c xen: change the sizes of memory fields in the HVM start info to be 64bits

Now that we have (or are just about to get) the start info in the public API/ABI, it would be better to refer to its canonical location, than to try to keep multiple copies up to date.

~Andrew

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

#2 lore raw
Quoted 10 lines · Andrew Cooper
Quoted 5 lines · Anthony PERARD

It as been modified by:
3c8d890 x86/PVHv2: update the start info structure layout
247d38c xen: change the sizes of memory fields in the HVM start info to be 64bits

Now that we have (or are just about to get) the start info in the public API/ABI, it would be better to refer to its canonical location, than to try to keep multiple copies up to date.

I guess I can add a patch to my hvmloader patch series.

Signature · 6 lines
Anthony PERARD

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