qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Luke Gorrie <luke@snabb.co>
Cc: qemu-devel <qemu-devel@nongnu.org>,
	Marcel Apfelbaum <marcel.a@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.4] Revert "vhost-user: Send VHOST_RESET_OWNER on vhost stop"
Date: Tue, 4 Aug 2015 23:36:37 +0300	[thread overview]
Message-ID: <20150804233526-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <CAA2XHbemFtcf=vUDteRb-_LHib+LiOkR2-wbpcccZgUi7CJ8ZA@mail.gmail.com>

On Tue, Aug 04, 2015 at 09:00:47PM +0200, Luke Gorrie wrote:
> Hi Michael,
> 
> Sorry I didn't see this mail sooner -
> 
> On 30 July 2015 at 10:36, Michael S. Tsirkin <mst@redhat.com> wrote:
> 
>     This reverts commit 294ce717e0f212ed0763307f3eab72b4a1bdf4d0.
> 
>     vhost stop happens e.g. when guest unloads the driver,
>     so closing the backend connection is not the right
>     thing to do here.
> 
>     VHOST_RESET_OWNER should happen on vhost_dev_cleanup - it's
>     the counterpart of VHOST_SET_OWNER.
> 
>     Cc: Luke Gorrie <luke@snabb.co>
>     Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
>     ---
> 
>     I think we need this in 2.4 to avoid introducing regressions
>     in the protocol. We'll fix properly in 2.5.
>     Luke, can you comment please?
> 
> 
> Interesting. Currently we don't have a test case in Snabb Switch CI for guests
> reloading drivers. We need to add that and let you know how it goes.
> 
> The reason I made this patch was to fix a problem with guests failing to
> reboot. This patch seemed to be necessary for the vswitch to know that the
> vring in guest memory is not valid anymore and should not be used for DMA
> (since that memory is being reallocated to who knows what).

This makes sense, but the description says master will
close the socket. This makes no sense to me.
Maybe we should leave the code as is, but rename the message
to RESET_DEVICE then?

> I wonder if driver reload sort of behavior can be related to this interesting
> problem that we are also tracking down - ideas would be very welcome:
> https://github.com/SnabbCo/snabbswitch/issues/574
> 
> 

  reply	other threads:[~2015-08-04 20:36 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-30  8:36 [Qemu-devel] [PATCH for-2.4] Revert "vhost-user: Send VHOST_RESET_OWNER on vhost stop" Michael S. Tsirkin
2015-08-04 19:00 ` Luke Gorrie
2015-08-04 20:36   ` Michael S. Tsirkin [this message]
2015-08-06  9:33     ` Luke Gorrie
2016-08-02  9:42   ` Luke Gorrie
2016-08-02 17:32     ` Michael S. Tsirkin
2016-08-10 13:50       ` Luke Gorrie

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=20150804233526-mutt-send-email-mst@redhat.com \
    --to=mst@redhat.com \
    --cc=luke@snabb.co \
    --cc=marcel.a@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).