Files
xemu/include/qemu
Kevin Wolf 520d8b40e8 block/export: Fix vhost-user-blk shutdown with requests in flight
The vhost-user-blk export runs requests asynchronously in their own
coroutine. When the vhost connection goes away and we want to stop the
vhost-user server, we need to wait for these coroutines to stop before
we can unmap the shared memory. Otherwise, they would still access the
unmapped memory and crash.

This introduces a refcount to VuServer which is increased when spawning
a new request coroutine and decreased before the coroutine exits. The
memory is only unmapped when the refcount reaches zero.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Message-Id: <20220125151435.48792-1-kwolf@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-02-01 13:49:15 +01:00
..
2021-12-21 10:50:22 +04:00
2020-12-10 12:15:18 -05:00
2020-10-15 16:06:27 +02:00
2021-11-09 10:32:52 +11:00
2021-10-07 10:42:40 +02:00
2020-12-10 17:16:44 +01:00
2021-12-21 10:50:22 +04:00
2021-11-10 13:20:15 +01:00
2021-04-01 15:27:44 +04:00