diff options
author | Thanos Makatos <thanos.makatos@nutanix.com> | 2022-02-24 21:57:52 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-24 21:57:52 +0000 |
commit | 440652c74404f4e682ad35a2fed64258d3496815 (patch) | |
tree | c3d62cb0f449643ec27831815b8e42fabf887bbc /lib/libvfio-user.c | |
parent | a23ef2792820141f4ecce63ec8bf80ea320b259c (diff) | |
download | libvfio-user-440652c74404f4e682ad35a2fed64258d3496815.zip libvfio-user-440652c74404f4e682ad35a2fed64258d3496815.tar.gz libvfio-user-440652c74404f4e682ad35a2fed64258d3496815.tar.bz2 |
additional logging around dirty pages (#650)
Signed-off-by: Thanos Makatos <thanos.makatos@nutanix.com>
Reviewed-by: John Levon <john.levon@nutanix.com>
Diffstat (limited to 'lib/libvfio-user.c')
-rw-r--r-- | lib/libvfio-user.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/libvfio-user.c b/lib/libvfio-user.c index 3f67992..89b3bc8 100644 --- a/lib/libvfio-user.c +++ b/lib/libvfio-user.c @@ -942,7 +942,13 @@ handle_dirty_pages_get(vfu_ctx_t *vfu_ctx, vfu_msg_t *msg) msg->out_size = 0; return ERROR_INT(ret); } + } else { + vfu_log(vfu_ctx, LOG_ERR, + "dirty pages: get [%#lx, %#lx): buffer too small (%u < %lu)", + range_in->iova, range_in->iova + range_in->size, + dirty_pages_in->argsz, argsz); } + return 0; } |