From: Halil Pasic <pasic@linux.ibm.com>
To: Farhan Ali <alifm@linux.ibm.com>
Cc: Eric Farman <farman@linux.ibm.com>,
Cornelia Huck <cohuck@redhat.com>,
kvm@vger.kernel.org, linux-s390@vger.kernel.org,
pmorel@linux.ibm.com
Subject: Re: [PATCH v3 1/1] vfio-ccw: Prevent quiesce function going into an infinite loop
Date: Wed, 24 Apr 2019 12:21:10 +0200 [thread overview]
Message-ID: <20190424122110.78d9b1f8.pasic@linux.ibm.com> (raw)
In-Reply-To: <a2618478-4b98-a2c2-5f14-a91b193ebf53@linux.ibm.com>
On Tue, 23 Apr 2019 15:41:34 -0400
Farhan Ali <alifm@linux.ibm.com> wrote:
>
>
> On 04/23/2019 01:42 PM, Halil Pasic wrote:
> > One thing I'm confused about is, that we don't seem to prevent
> > new I/O being submitted. That is we could still loop indefinitely
> > if we get new IO after the 'kill I/O on the subchannel' is done but
> > before the msch() with the disable is issued.
>
> So the quiesce function will be called in the remove, release functions
> and also in the mdev reset callback via an ioctl VFIO_DEVICE_RESET.
>
> Now the release function is invoked in cases when we hot unplug the
> device or the guest is gone (or anything that will close the vfio mdev
> file descriptor, I believe). In such scenarios it's really the userspace
> which is asking to release the device. Similar for remove, where the
> user has to explicitly write to the remove file for the mdev to invoke
> it. Under normal conditions no sane userspace should be doing
> release/remove while there are still on going I/Os :)
So you say userspace has to take care of it. Is this documented
somewhere? Does QEMU actually take care of it?
>
> Me and Conny had some discussion on this in v1 of this patch:
> https://marc.info/?l=kvm&m=155437117823248&w=2
>
> >
> > The 'flush all I/O' parts in the commit message and in the code make
> > this even more confusing.
>
> Maybe...if it's too confusing it could be fixed, but IMHO I don't think
> it's a dealbreaker. If anyone else thinks otherwise, I can go ahead and
> change it.
>
I responded to Connie. No it is not a dealbreaker. But I prefer not
disseminating false information.
[..]
Regarding the rest of the points from her, I responded to Connie's
follow up as well.
Cheers,
Halil
next prev parent reply other threads:[~2019-04-24 10:21 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <cover.1555449329.git.alifm@linux.ibm.com>
2019-04-16 21:23 ` [PATCH v3 1/1] vfio-ccw: Prevent quiesce function going into an infinite loop Farhan Ali
2019-04-17 9:03 ` Cornelia Huck
2019-04-17 13:58 ` Eric Farman
2019-04-17 15:13 ` Halil Pasic
2019-04-17 15:18 ` Farhan Ali
2019-04-19 20:12 ` Halil Pasic
2019-04-22 14:01 ` Farhan Ali
2019-04-23 17:42 ` Halil Pasic
2019-04-23 19:41 ` Farhan Ali
2019-04-23 20:37 ` Eric Farman
2019-04-24 7:09 ` Cornelia Huck
2019-04-24 10:02 ` Halil Pasic
2019-04-24 10:21 ` Halil Pasic [this message]
2019-04-18 14:36 ` Cornelia Huck
2019-04-17 14:02 ` Farhan Ali
2019-04-24 16:35 ` Cornelia Huck
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=20190424122110.78d9b1f8.pasic@linux.ibm.com \
--to=pasic@linux.ibm.com \
--cc=alifm@linux.ibm.com \
--cc=cohuck@redhat.com \
--cc=farman@linux.ibm.com \
--cc=kvm@vger.kernel.org \
--cc=linux-s390@vger.kernel.org \
--cc=pmorel@linux.ibm.com \
/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