[PATCH v6 0/2] Improve vhost-user VQ notifier unmap

Xueming Li posted 2 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211101083813.1224522-1-xuemingl@nvidia.com
Maintainers: "Michael S. Tsirkin" <mst@redhat.com>
hw/virtio/vhost-user.c         | 63 ++++++++++++++++------------------
include/hw/virtio/vhost-user.h |  3 +-
2 files changed, 31 insertions(+), 35 deletions(-)
[PATCH v6 0/2] Improve vhost-user VQ notifier unmap
Posted by Xueming Li 2 years, 6 months ago
When vDPA applicaiton in client mode shutdown, unmapped VQ notifier
might being accessed by vCPU thread under high tx traffic, it will
crash VM in rare conditon. This patch try to fix it with better RCU
sychronization of new flatview.

v2: no RCU draining on vCPU thread
v3: minor fix on coding style and comments
    https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg01764.html
v4: fix first patch compilation
    https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg04060.html
v5: update 2/2 commit message
    https://lists.nongnu.org/archive/html/qemu-devel/2021-10/msg04115.html
v6: use call_rcu to avoid dead lock in rcu reader

Xueming Li (2):
  vhost-user: remove VirtQ notifier restore
  vhost-user: fix VirtQ notifier cleanup

 hw/virtio/vhost-user.c         | 63 ++++++++++++++++------------------
 include/hw/virtio/vhost-user.h |  3 +-
 2 files changed, 31 insertions(+), 35 deletions(-)

-- 
2.33.0