vhost-vdpa: Add check for full 64-bit in region delete
authorCindy Lu <lulu@redhat.com>
Wed, 10 May 2023 05:46:30 +0000 (13:46 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 19 May 2023 14:30:46 +0000 (10:30 -0400)
commit2fbef6aad892a3e784041fc5a6d5f5bda0565464
treef193905fd99b857079590a09bdfd059abb9b8d93
parent3d1e4d34a81a212e234f674e57e73c824d4b131a
vhost-vdpa: Add check for full 64-bit in region delete

The unmap ioctl doesn't accept a full 64-bit span. So need to
add check for the section's size in vhost_vdpa_listener_region_del().

Signed-off-by: Cindy Lu <lulu@redhat.com>
Message-Id: <20230510054631.2951812-4-lulu@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/virtio/vhost-vdpa.c