From e6d6e0078a111c8a5bef5d0ed80f59b2efc3263f Mon Sep 17 00:00:00 2001 From: Thanos Makatos Date: Wed, 10 Feb 2021 13:40:05 +0000 Subject: set VFIO_REGION_INFO_FLAG_CAPS for migration region (#319) Signed-off-by: Thanos Makatos Reviewed-by: John Levon --- lib/libvfio-user.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/libvfio-user.c') diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index 00379a6..e5ba0aa 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -396,9 +396,7 @@ dev_get_reginfo(vfu_ctx_t *vfu_ctx, uint32_t index, uint32_t argsz, *nr_fds = 0; if (caps_size > 0) { - if (vfu_reg->mmap_areas != NULL) { - (*vfio_reg)->flags |= VFIO_REGION_INFO_FLAG_CAPS; - } + (*vfio_reg)->flags |= VFIO_REGION_INFO_FLAG_CAPS; if (argsz >= (*vfio_reg)->argsz) { dev_get_caps(vfu_ctx, vfu_reg, is_migr_reg(vfu_ctx, index), *vfio_reg, fds, nr_fds); -- cgit v1.1