The "count" parameter in the DMA write reply should be 8 bytes in size.
Reported-by: Patrick Mooney <patrick@matx.com>
Signed-off-by: John Levon <john.levon@nutanix.com>
---
docs/interop/vfio-user.rst | 2 +-
hw/vfio-user/protocol.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/interop/vfio-user.rst b/docs/interop/vfio-user.rst
index 303fc13d6e..d4766487ea 100644
--- a/docs/interop/vfio-user.rst
+++ b/docs/interop/vfio-user.rst
@@ -1463,7 +1463,7 @@ Reply
+=========+========+==========+
| address | 0 | 8 |
+---------+--------+----------+
-| count | 8 | 4 |
+| count | 8 | 8 |
+---------+--------+----------+
* *address* is the client DMA memory address being accessed.
diff --git a/hw/vfio-user/protocol.h b/hw/vfio-user/protocol.h
index 2a0c31e7c5..c478d1353f 100644
--- a/hw/vfio-user/protocol.h
+++ b/hw/vfio-user/protocol.h
@@ -210,7 +210,7 @@ typedef struct {
typedef struct {
VFIOUserHdr hdr;
uint64_t offset;
- uint32_t count;
+ uint64_t count;
char data[];
} VFIOUserDMARW;
--
2.43.0