From c41508b7e22afa7d2aff019b43e8e035d1b33392 Mon Sep 17 00:00:00 2001 From: John Levon Date: Thu, 20 May 2021 19:33:15 +0100 Subject: [PATCH] libvfio-user: update submodule Update libvfio-user to the current version, updating the client for the relevant changes. Signed-off-by: John Levon Change-Id: Ic64ace08ac0c7e9676f04f8d1f47a9c0388a2652 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/7983 Tested-by: SPDK CI Jenkins Reviewed-by: Ben Walker Reviewed-by: Changpeng Liu Community-CI: Mellanox Build Bot --- include/spdk/vfio_user_spec.h | 3 ++- lib/vfio_user/vfio_user.c | 2 +- libvfio-user | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) 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