]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
vfio-user: correct protocol for DMA reads/writes
authorJohn Levon <john.levon@nutanix.com>
Fri, 10 Apr 2026 08:57:15 +0000 (09:57 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 21 Apr 2026 16:28:42 +0000 (18:28 +0200)
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>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20260410085716.877185-3-john.levon@nutanix.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
docs/interop/vfio-user.rst
hw/vfio-user/protocol.h

index 303fc13d6ec4c32c32bd95604c75239342d85062..d4766487ea6d0ee021316890d443814957cf6284 100644 (file)
@@ -1463,7 +1463,7 @@ Reply
 +=========+========+==========+
 | address | 0      | 8        |
 +---------+--------+----------+
-| count   | 8      | 4        |
+| count   | 8      | 8        |
 +---------+--------+----------+
 
 * *address* is the client DMA memory address being accessed.
index 2a0c31e7c57f8ed86681ebd96b20df3e32792dec..c478d1353f9d618ef8c202cd28cd638aeed3bd57 100644 (file)
@@ -210,7 +210,7 @@ typedef struct {
 typedef struct {
     VFIOUserHdr hdr;
     uint64_t offset;
-    uint32_t count;
+    uint64_t count;
     char data[];
 } VFIOUserDMARW;