[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20180430155616.38529d08.cohuck@redhat.com>
Date: Mon, 30 Apr 2018 15:56:16 +0200
From: Cornelia Huck <cohuck@...hat.com>
To: Halil Pasic <pasic@...ux.ibm.com>
Cc: Pierre Morel <pmorel@...ux.vnet.ibm.com>,
Dong Jia Shi <bjsdjshi@...ux.vnet.ibm.com>,
pasic@...ux.vnet.ibm.com, linux-s390@...r.kernel.org,
linux-kernel@...r.kernel.org, kvm@...r.kernel.org
Subject: Re: [PATCH 01/10] vfio: ccw: Moving state change out of IRQ context
On Wed, 25 Apr 2018 13:06:31 +0200
Halil Pasic <pasic@...ux.ibm.com> wrote:
> On 04/25/2018 08:57 AM, Cornelia Huck wrote:
> >> AFAIU this will be the problem of the person implementing the clear
> >> and the halt for vfio-ccw. I.e. it's a non-problem right now.
> > Well, that person is me:) I will post some RFC Real Soon Now if I stop
> > getting sidetracked...
> >
>
> Makes sense. It should be fine either way AFAIU.
>
> CSCH, more precisely the clear function is supposed to clear the
> interruption request(s) too. But I guess there is no way of the CP to
> identify an I/O interrupt that should have been cleared -- that is catch
> us disrespecting the architecture. I can't think of a way to establish
> must happen before relationship...
>
> But discarding the first interrupt and delivering just one for the CSCH
> is fine too for the same reason.
Yes, both work. The calling code in the guest has to be able to handle
both anyway, since both can happen on real hardware as well (with a
smaller race window).
Powered by blists - more mailing lists