diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-09-23 04:36:41 -0400 |
---|---|---|
committer | Thanos Makatos <thanos.makatos@nutanix.com> | 2020-09-23 05:11:51 -0400 |
commit | a6664824c7cdc48b8df84e021d4675def272e14d (patch) | |
tree | 53919f8f767fbdc918e3aced753a18eeedb1675e /lib/vfio_user.h | |
parent | 5bc6de967b641313caac2d909462e7b03412399c (diff) | |
download | libvfio-user-a6664824c7cdc48b8df84e021d4675def272e14d.zip libvfio-user-a6664824c7cdc48b8df84e021d4675def272e14d.tar.gz libvfio-user-a6664824c7cdc48b8df84e021d4675def272e14d.tar.bz2 |
refactor send/recv of message plus fixes
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Diffstat (limited to 'lib/vfio_user.h')
-rw-r--r-- | lib/vfio_user.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/vfio_user.h b/lib/vfio_user.h index 292458e..993e15c 100644 --- a/lib/vfio_user.h +++ b/lib/vfio_user.h @@ -66,6 +66,8 @@ struct vfio_user_header { uint32_t msg_size; struct { uint32_t type : 4; +#define VFIO_USER_F_TYPE_COMMAND 0 +#define VFIO_USER_F_TYPE_REPLY 1 uint32_t no_reply : 1; uint32_t error : 1; uint32_t resvd : 26; @@ -73,14 +75,13 @@ struct vfio_user_header { uint32_t error_no; } __attribute__((packed)); -#define VFIO_USER_DMA_REGION_MAPPABLE (0x1) - struct vfio_user_dma_region { uint64_t addr; uint64_t size; uint64_t offset; - uint32_t protections; + uint32_t prot; uint32_t flags; +#define VFIO_USER_F_DMA_REGION_MAPPABLE (0x0) } __attribute__((packed)); struct vfio_user_region_access { |