aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorRaphael Norwitz <raphael.norwitz@nutanix.com>2022-01-17 04:12:35 +0000
committerMichael S. Tsirkin <mst@redhat.com>2022-02-04 09:07:43 -0500
commit4fafedc9daaf7d7d5ad36d8925bdddd6da5ed8c2 (patch)
treec37fbea6c057f80d36bed7ae244f5ef19a92a906 /tests/data
parentb906a23c33673f790a67dbd631a244387be77cb5 (diff)
libvhost-user: handle removal of identical regions
Today if QEMU (or any other VMM) has sent multiple copies of the same region to a libvhost-user based backend and then attempts to remove the region, only one instance of the region will be removed, leaving stale copies of the region in dev->regions[]. This change resolves this by having vu_rem_mem_reg() iterate through all regions in dev->regions[] and delete all matching regions. Suggested-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Raphael Norwitz <raphael.norwitz@nutanix.com> Message-Id: <20220117041050.19718-7-raphael.norwitz@nutanix.com> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Reviewed-by: David Hildenbrand <david@redhat.com>
Diffstat (limited to 'tests/data')
0 files changed, 0 insertions, 0 deletions