Skip to contentSkip to conversation

xen/public: Correct the HYPERVISOR_dm_op() documentation to match reality

PATCH In review Andrew Cooper 3 participants 3 messages Jun 1, 2017

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 xen/public: Correct the HYPERVISOR_dm_op() documentation to match reality

The number of buffers is ahead of the buffer list in the argument list.

---
CC: George Dunlap <[email protected]>
CC: Ian Jackson <[email protected]>
CC: Jan Beulich <[email protected]>
CC: Konrad Rzeszutek Wilk <[email protected]>
CC: Stefano Stabellini <[email protected]>
CC: Tim Deegan <[email protected]>
CC: Wei Liu <[email protected]>
CC: Paul Durrant <[email protected]>
CC: Julien Grall <[email protected]>

For 4.9. This is only documentation, but important to get correct seeing as dm_op()s are a new feature in 4.9

---
 xen/include/public/hvm/dm_op.h | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
xen/include/public/hvm/dm_op.h +3 -3
index 20c21b6..2a4c3d9 100644
@@ -391,17 +391,17 @@ DEFINE_XEN_GUEST_HANDLE(xen_dm_op_buf_t);
 
 /* ` enum neg_errnoval
  * ` HYPERVISOR_dm_op(domid_t domid,
- * `                  xen_dm_op_buf_t bufs[],
- * `                  unsigned int nr_bufs)
+ * `                  unsigned int nr_bufs,
+ * `                  xen_dm_op_buf_t bufs[])
  * `
  *
  * @domid is the domain the hypercall operates on.
+ * @nr_bufs is the number of buffers in the @bufs array.
  * @bufs points to an array of buffers where @bufs[0] contains a struct
  * xen_dm_op, describing the specific device model operation and its
  * parameters.
  * @bufs[1..] may be referenced in the parameters for the purposes of
  * passing extra information to or from the domain.
- * @nr_bufs is the number of buffers in the @bufs array.
  */
 
 #endif /* __XEN_PUBLIC_HVM_DM_OP_H__ */
Signature · 7 lines
2.1.4


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

Hi,

Quoted 6 lines · Wei Liu
Quoted 3 lines · Andrew Cooper

The number of buffers is ahead of the buffer list in the argument list.

In general I am happy with any documentation update for Xen 4.9:

Cheers,

Signature · 6 lines
Julien Grall

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