diff --git a/include/spdk/vfio_user_spec.h b/include/spdk/vfio_user_spec.h index 1da127b98..9c2ee4bef 100644 --- a/include/spdk/vfio_user_spec.h +++ b/include/spdk/vfio_user_spec.h @@ -50,6 +50,7 @@ enum vfio_user_command { VFIO_USER_DMA_WRITE = 11, VFIO_USER_VM_INTERRUPT = 12, VFIO_USER_DEVICE_RESET = 13, + VFIO_USER_DIRTY_PAGES = 14, VFIO_USER_MAX, }; @@ -107,7 +108,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)); diff --git a/lib/vfio_user/vfio_user.c b/lib/vfio_user/vfio_user.c index 53f297001..eed6c1576 100644 --- a/lib/vfio_user/vfio_user.c +++ b/lib/vfio_user/vfio_user.c @@ -296,7 +296,7 @@ vfio_user_get_dev_info(struct vfio_device *dev, struct vfio_user_device_info *de int vfio_user_dev_dma_map_unmap(struct vfio_device *dev, struct vfio_memory_region *mr, bool map) { - struct vfio_user_dma_region region; + struct vfio_user_dma_region region = { 0 }; region.addr = mr->iova; region.size = mr->size; diff --git a/libvfio-user b/libvfio-user index 702a4cad4..cfe990191 160000 --- a/libvfio-user +++ b/libvfio-user @@ -1 +1 @@ -Subproject commit 702a4cad49c40406ff498e0da4a80c6d07b4fc83 +Subproject commit cfe9901919943f14961e1da1c4a823336ff79555