[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen staging] xen/include: public: Document the padding in struct xen_hvm_param



commit 24ea7abcdc8654ad2d9831a79c6d6f580aca6a3c
Author:     Julien Grall <jgrall@xxxxxxxxxx>
AuthorDate: Thu Feb 6 15:41:18 2020 +0000
Commit:     Julien Grall <julien@xxxxxxx>
CommitDate: Sat Feb 8 11:55:23 2020 +0000

    xen/include: public: Document the padding in struct xen_hvm_param
    
    There is an implicit padding of 2 bytes in struct xen_hvm_param between
    the field domid and index. Make it explicit by introduce a padding
    field. This can also serve as documentation.
    
    Note that I don't think we can mandate it to be zero because a guest may
    not have initialized the padding.
    
    Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
    Acked-by: Jan Beulich <jbeulich@xxxxxxxx>
    Acked-by: Wei Liu <wl@xxxxxxx>
---
 xen/include/public/hvm/hvm_op.h | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/include/public/hvm/hvm_op.h b/xen/include/public/hvm/hvm_op.h
index 610e020a62..b599d3cbd0 100644
--- a/xen/include/public/hvm/hvm_op.h
+++ b/xen/include/public/hvm/hvm_op.h
@@ -32,6 +32,7 @@
 #define HVMOP_get_param           1
 struct xen_hvm_param {
     domid_t  domid;    /* IN */
+    uint16_t pad;
     uint32_t index;    /* IN */
     uint64_t value;    /* IN/OUT */
 };
--
generated by git-patchbot for /home/xen/git/xen.git#staging

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.