qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v4 0/2] Improve vhost-user VQ notifier unmap
@ 2021-10-19  6:37 Xueming Li
  2021-10-19  6:37 ` [PATCH v4 1/2] vhost-user: fix VirtQ notifier cleanup Xueming Li
  2021-10-19  6:37 ` [PATCH v4 2/2] vhost-user: remove VirtQ notifier restore Xueming Li
  0 siblings, 2 replies; 3+ messages in thread
From: Xueming Li @ 2021-10-19  6:37 UTC (permalink / raw)
  To: qemu-devel; +Cc: xuemingl, qemu-stable

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

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

 hw/virtio/vhost-user.c         | 41 +++++++++++++---------------------
 include/hw/virtio/vhost-user.h |  1 -
 2 files changed, 16 insertions(+), 26 deletions(-)

-- 
2.33.0



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2021-10-19  6:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-10-19  6:37 [PATCH v4 0/2] Improve vhost-user VQ notifier unmap Xueming Li
2021-10-19  6:37 ` [PATCH v4 1/2] vhost-user: fix VirtQ notifier cleanup Xueming Li
2021-10-19  6:37 ` [PATCH v4 2/2] vhost-user: remove VirtQ notifier restore Xueming Li

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).