From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56077) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKAjr-0000bb-P6 for qemu-devel@nongnu.org; Fri, 15 Jan 2016 15:12:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aKAjo-00081f-Hx for qemu-devel@nongnu.org; Fri, 15 Jan 2016 15:12:51 -0500 Received: from rcdn-iport-4.cisco.com ([173.37.86.75]:6041) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aKAjo-00081Y-4N for qemu-devel@nongnu.org; Fri, 15 Jan 2016 15:12:48 -0500 From: Shesha Sreenivasamurthy Date: Fri, 15 Jan 2016 12:12:43 -0800 Message-Id: <1452888764-60880-1-git-send-email-shesha@cisco.com> Subject: [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: shesha@cisco.com, mst@redhat.com 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)