diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2021-02-10 13:40:05 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-10 13:40:05 +0000 |
commit | e6d6e0078a111c8a5bef5d0ed80f59b2efc3263f (patch) | |
tree | aa314237272e8c4d448320eb32990ceea62bcec2 /lib | |
parent | 365ca96a97740332d3633090d850222d10bc9d70 (diff) | |
download | libvfio-user-e6d6e0078a111c8a5bef5d0ed80f59b2efc3263f.zip libvfio-user-e6d6e0078a111c8a5bef5d0ed80f59b2efc3263f.tar.gz libvfio-user-e6d6e0078a111c8a5bef5d0ed80f59b2efc3263f.tar.bz2 |
set VFIO_REGION_INFO_FLAG_CAPS for migration region (#319)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/libvfio-user.c | 4 |
1 files changed, 1 insertions, 3 deletions
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); |