qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "shesha Sreenivasamurthy (shesha)" <shesha@cisco.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot
Date: Mon, 18 Jan 2016 21:40:52 +0000	[thread overview]
Message-ID: <D2C29BA3.28FBD%shesha@cisco.com> (raw)
In-Reply-To: <20160117132238-mutt-send-email-mst@redhat.com>

[-- Attachment #1: Type: text/plain, Size: 1644 bytes --]

Got it. Thanks, I missed that line while reading the spec. Is docs/specs/vhost-user.txt the official spec ?

--
- Thanks
char * (*shesha) (uint64_t cache, uint8_t F00D)
{ return 0x0000C0DE; }

From: "Michael S. Tsirkin" <mst@redhat.com<mailto:mst@redhat.com>>
Date: Sunday, January 17, 2016 at 3:23 AM
To: Cisco Employee <shesha@cisco.com<mailto:shesha@cisco.com>>
Cc: "qemu-devel@nongnu.org<mailto:qemu-devel@nongnu.org>" <qemu-devel@nongnu.org<mailto:qemu-devel@nongnu.org>>
Subject: Re: [PATCH] vhost-user: Slave crashes as Master unmaps vrings during guest reboot

On Fri, Jan 15, 2016 at 12:12:43PM -0800, Shesha Sreenivasamurthy wrote:
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.

The spec currently says:
Client must start ring upon receiving a kick (that is, detecting that file
descriptor is readable) on the descriptor specified by
VHOST_USER_SET_VRING_KICK, and stop ring upon receiving
VHOST_USER_GET_VRING_BASE.

Why isn't this sufficient?

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)


[-- Attachment #2: Type: text/html, Size: 4059 bytes --]

  reply	other threads:[~2016-01-18 21:41 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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) [this message]
  -- strict thread matches above, loose matches on Subject: below --
2016-01-15 20:23 Shesha Sreenivasamurthy
2016-01-15 20:23 ` Shesha Sreenivasamurthy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=D2C29BA3.28FBD%shesha@cisco.com \
    --to=shesha@cisco.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).