Received: by 10.192.165.148 with SMTP id m20csp3815880imm; Mon, 30 Apr 2018 06:56:45 -0700 (PDT) X-Google-Smtp-Source: AB8JxZo3OmhU9DjkO/j8dGuNdXjIBKt0KyOJfkf55BDKrnEEy3eSS9bEc2nXM2J3UT9lrgwYPVom X-Received: by 10.98.15.23 with SMTP id x23mr12182242pfi.3.1525096605462; Mon, 30 Apr 2018 06:56:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525096605; cv=none; d=google.com; s=arc-20160816; b=1FQ1Ed/AsAZNl6dy5VOA9XrSs2aRfHPAsJtrOQCcBrp1e8JKaC5TIiidpQdGL9AR3a w7AgPiFhkYIio2Kcrqfgv5LFDivdDrvBm91nmAm5Gq8F9xSzgL9tQwnJeAWDLG9q6WJd RVgat09QcbczL+sABT2d7hfY/my3PD+1srCvilCGlHZ0vrgfjD81MdQM5RJlaG/n5Du6 jCKIg0mGv+pM4SlQa+B+0Uibv1TRW5BIuKznNLs9jvAVerth3tXIK/aylYp1PvFGjpVt Go+2Kv0iZobRTkUiXTcRcWgsLYjgwNf+o6qSPbQ5VbiUIlYzfjK40jGOHCW6WqcT6RKq Vx4g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=NXI/6D3/Ow9bs3k++aM0ZEQ5Ku7Sgj7HKx8FX2/u0P4=; b=C43gfCAUsJuj1QpXBIQ0CPEJzMXM4MK8I3aad9A5aZwWT4JZKMeLiVcOSQLZf9IDke mtv1d52irIUMOB7vIUS5QAM0R+YFMBSsfvAjMCJlPvoCbC8oUEcBMGuOF+lYBpBabARQ GVhDYPniP1NfgTs5YfWcebKQn/TCQIyGusuP3mMWzRcyVwsBr2MKKKm8XMDwSdT+HwrF zBpGGyQoS6/g2Pe9PytnQDJ53pdYcEZu7Oeyp4wsYjMluftHGLgfND8Cmwh4f1naRk4Y c5tWMtkgGOpx/HYp8Fp825GV53hiJs7zkoe4OhrRHfad8wIyczgX34LxOPIxcKdRIFnF 3Gmw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 24si7489647pfr.242.2018.04.30.06.56.31; Mon, 30 Apr 2018 06:56:45 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753691AbeD3N4V (ORCPT + 99 others); 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 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5C08D406C791; Mon, 30 Apr 2018 13:56:19 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id 432D8111DCF8; Mon, 30 Apr 2018 13:56:18 +0000 (UTC) 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 X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 30 Apr 2018 13:56:19 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.5]); Mon, 30 Apr 2018 13:56:19 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk 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).