diff options
author | Swapnil Ingle <swapnil.ingle@nutanix.com> | 2021-05-14 22:32:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-14 22:32:59 +0200 |
commit | 95f16fceadba22a7730c2a9c94cfd4028ef04a02 (patch) | |
tree | c8828c2c495ad1897cc9ed0d1776c48f9258508a /include | |
parent | 83eb5d9c02f7bdbeaf8eb2e21a39c92c715351a4 (diff) | |
download | libvfio-user-95f16fceadba22a7730c2a9c94cfd4028ef04a02.zip libvfio-user-95f16fceadba22a7730c2a9c94cfd4028ef04a02.tar.gz libvfio-user-95f16fceadba22a7730c2a9c94cfd4028ef04a02.tar.bz2 |
Fix dma read write count (#497)
* spec: Fixed DMA_READ/WRITE data count
DMA region size is maxed to uint64_t.
Updated DMA_READ/WRITE data count to be defined as uint64_t.
* Fix vfu_dma_read/write() as per spec changes
Signed-off-by: Swapnil Ingle <swapnil.ingle@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vfio-user.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/vfio-user.h b/include/vfio-user.h index 053ead2..9d820c9 100644 --- a/include/vfio-user.h +++ b/include/vfio-user.h @@ -125,7 +125,7 @@ struct vfio_user_region_access { struct vfio_user_dma_region_access { uint64_t addr; - uint32_t count; + uint64_t count; uint8_t data[]; } __attribute__((packed)); |