qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot
@ 2016-01-15 20:12 Shesha Sreenivasamurthy
  2016-01-15 20:12 ` Shesha Sreenivasamurthy
  2016-01-17 11:23 ` Michael S. Tsirkin
  0 siblings, 2 replies; 7+ messages in thread
From: Shesha Sreenivasamurthy @ 2016-01-15 20:12 UTC (permalink / raw)
  To: qemu-devel; +Cc: shesha, mst

Problem:
--------
If a guest has vhost-user enabled, then on reboot vhost_virtqueue_stop
is invoked. This unmaps vring memory mappings. However, it will not give
any indication to the underlying DPDK slave application about it.
Therefore, a pollmode DPDK driver tries to read the ring to check for
packets and segfaults.

Solution:
----------
VHOST_USER_RESET_OWNER API is issued by QEMU so that DPDK slave
application is informed that mappings will be soon gone so that
it can take necessary steps.

Shesha Sreenivasamurthy (1):
  vhost-user: Slave crashes as Master unmaps vrings during guest reboot

 hw/virtio/vhost.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
1.9.5 (Apple Git-50.3)

^ permalink raw reply	[flat|nested] 7+ messages in thread
* [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot
@ 2016-01-15 20:23 Shesha Sreenivasamurthy
  2016-01-15 20:23 ` Shesha Sreenivasamurthy
  0 siblings, 1 reply; 7+ messages in thread
From: Shesha Sreenivasamurthy @ 2016-01-15 20:23 UTC (permalink / raw)
  To: qemu-devel; +Cc: shesha, mst

Problem:
--------
If a guest has vhost-user enabled, then on reboot vhost_virtqueue_stop
is invoked. This unmaps vring memory mappings. However, it will not give
any indication to the underlying DPDK slave application about it.
Therefore, a pollmode DPDK driver tries to read the ring to check for
packets and segfaults.

Solution:
----------
VHOST_USER_RESET_OWNER API is issued by QEMU so that DPDK slave
application is informed that mappings will be soon gone so that
it can take necessary steps.

Shesha Sreenivasamurthy (1):
  vhost-user: Slave crashes as Master unmaps vrings during guest reboot

 hw/virtio/vhost.c | 5 +++++
 1 file changed, 5 insertions(+)

-- 
1.9.5 (Apple Git-50.3)

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

end of thread, other threads:[~2016-01-18 21:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-15 20:12 [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot Shesha Sreenivasamurthy
2016-01-15 20:12 ` Shesha Sreenivasamurthy
2016-01-17 11:30   ` Michael S. Tsirkin
2016-01-17 11:23 ` Michael S. Tsirkin
2016-01-18 21:40   ` shesha Sreenivasamurthy (shesha)
  -- strict thread matches above, loose matches on Subject: below --
2016-01-15 20:23 Shesha Sreenivasamurthy
2016-01-15 20:23 ` Shesha Sreenivasamurthy

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).