diff --git a/hw/remote/vfio-user-obj.c b/hw/remote/vfio-user-obj.c index 49bf5ecae0..87fa7b6572 100644 --- a/hw/remote/vfio-user-obj.c +++ b/hw/remote/vfio-user-obj.c @@ -800,7 +800,8 @@ static void vfu_object_init_ctx(VfuObject *o, Error **errp) goto fail; } - ret = vfu_setup_device_dma(o->vfu_ctx, &dma_register, &dma_unregister); + ret = vfu_setup_device_dma(o->vfu_ctx, LIBVFIO_USER_MAX_DMA_REGIONS, + &dma_register, &dma_unregister); if (ret < 0) { error_setg(errp, "vfu: Failed to setup DMA handlers for %s", o->device); diff --git a/subprojects/libvfio-user.wrap b/subprojects/libvfio-user.wrap index 416955ca45..11db795f8a 100644 --- a/subprojects/libvfio-user.wrap +++ b/subprojects/libvfio-user.wrap @@ -1,4 +1,4 @@ [wrap-git] url = https://gitlab.com/qemu-project/libvfio-user.git -revision = 0b28d205572c80b568a1003db2c8f37ca333e4d7 +revision = 4d9f663450fa80ff375612dbbafe073700e3d3d8 depth = 1