From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753740AbeD3N4V (ORCPT ); Mon, 30 Apr 2018 09:56:21 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:57206 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751949AbeD3N4U (ORCPT ); Mon, 30 Apr 2018 09:56:20 -0400 Date: Mon, 30 Apr 2018 15:56:16 +0200 From: Cornelia Huck To: Halil Pasic Cc: Pierre Morel , Dong Jia Shi , pasic@linux.vnet.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Subject: Re: [PATCH 01/10] vfio: ccw: Moving state change out of IRQ context Message-ID: <20180430155616.38529d08.cohuck@redhat.com> In-Reply-To: References: <1524149293-12658-1-git-send-email-pmorel@linux.vnet.ibm.com> <1524149293-12658-2-git-send-email-pmorel@linux.vnet.ibm.com> <20180424065442.GV12194@bjsdjshi@linux.vnet.ibm.com> <20180424115929.5b5e1ff0.cohuck@redhat.com> <245ee547-75bc-95f5-5acb-bfa96f91afd2@linux.ibm.com> <20180425085726.3a8a97a5.cohuck@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 25 Apr 2018 13:06:31 +0200 Halil Pasic 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).