Received: by 10.192.165.148 with SMTP id m20csp1762240imm; Thu, 3 May 2018 05:08:56 -0700 (PDT) X-Google-Smtp-Source: AB8JxZolBtcNHvS93LAo8JDIgmdYuszRINTIXl9k0FkjivD3RpQ7x3VRI/0ba1VYdCMu8ITY9cPP X-Received: by 10.98.127.145 with SMTP id a139mr22908399pfd.25.1525349336633; Thu, 03 May 2018 05:08:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525349336; cv=none; d=google.com; s=arc-20160816; b=cGhJI9CWfQtkxRDUTZz+DbhvwHJNLtePPr1O4DpfIN2M7f2y3q02kEkD0tBGTPWSRK NhWkE3m1/6x5WRIekzHuQkjqB9aFezGAjM9nMBc7aMOi3EVCJRRbFiPG41dsEuc+7rP4 hQuvJhVimMZio7cUsiNelMs43ThQ50YIEfT9qKSWbQg5WYxAlJZlRWdSPyUtNjuia4SU zmt2zr2iUTRyHpG7QM8L71gTtNET5X4BO74R250oakDdrR4lHvLkTkcASX7YhDfIc08N B5o5ubpU1iNZCpbm+97gLaYcJ2bpO5jlh6korSadIxOfBjzaEOSLCMkEOMVSWLPentmM Mz+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:content-language :content-transfer-encoding:in-reply-to:mime-version:user-agent:date :from:references:cc:to:subject:arc-authentication-results; bh=wVJ+BCh0tIHmJN+u1gyFOLccIUdeP2Unsoq9QL+Qruk=; b=wp3YbXOnN6Pr97hfxTP2qkNfnYL1K6LkIiuunPWrIzrmzBdtDAB1vg3RFvuyZsfmnJ esuUbFjPWGBIYzbopKrh0/5aWjktHJcl2fKH2EiHdIj4Yj2mo6YRYup1YMaB2I1DoZQ4 WbKpX5wp4hEDpTeMxfuUpiiAZVGnRJ/hcwhdz1YUGlm1MRhG+Y+sWCcdvLj3SH7DqNFR 0C3C0Rcyh/H/HRRSqhf7NYkQTQodsEe82VtM0ZOhqVGbbjeUXbdQnL9rMzmL98OyJC2a W0FXBvcpCKTwzPEM2pRE/vOPSVtlGGcCftXHQ5gsvu/Ymc3mrTIEZcy1fINFJhZafsDA MUCw== 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=ibm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c129si13305088pfc.367.2018.05.03.05.08.42; Thu, 03 May 2018 05:08:56 -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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751532AbeECMG7 (ORCPT + 99 others); Thu, 3 May 2018 08:06:59 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:49912 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750999AbeECMG6 (ORCPT ); Thu, 3 May 2018 08:06:58 -0400 Received: from pps.filterd (m0098413.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w43BxGMG048381 for ; Thu, 3 May 2018 08:06:57 -0400 Received: from e06smtp15.uk.ibm.com (e06smtp15.uk.ibm.com [195.75.94.111]) by mx0b-001b2d01.pphosted.com with ESMTP id 2hr085d84m-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 03 May 2018 08:06:56 -0400 Received: from localhost by e06smtp15.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 3 May 2018 13:06:55 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp15.uk.ibm.com (192.168.101.145) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 3 May 2018 13:06:52 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w43C6pbw15663576; Thu, 3 May 2018 12:06:51 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 970D311C050; Thu, 3 May 2018 12:58:25 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 601DF11C04C; Thu, 3 May 2018 12:58:25 +0100 (BST) Received: from [9.152.224.33] (unknown [9.152.224.33]) by d06av25.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 3 May 2018 12:58:25 +0100 (BST) Subject: Re: [PATCH 04/10] vfio: ccw: replace IO_REQ event with SSCH_REQ event To: Cornelia Huck Cc: pasic@linux.vnet.ibm.com, bjsdjshi@linux.vnet.ibm.com, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org References: <1524149293-12658-1-git-send-email-pmorel@linux.vnet.ibm.com> <1524149293-12658-5-git-send-email-pmorel@linux.vnet.ibm.com> <20180425104138.1337aff5.cohuck@redhat.com> <24f638e4-2f7e-00e1-1efb-ff3fe524bca0@linux.vnet.ibm.com> <20180430173028.0dca976c.cohuck@redhat.com> From: Pierre Morel Date: Thu, 3 May 2018 14:06:51 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <20180430173028.0dca976c.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18050312-0020-0000-0000-0000041889E1 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050312-0021-0000-0000-000042ADAB85 Message-Id: <3c5a0677-4ed2-9bde-e6d8-d02ab69e0c2c@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_06:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1015 lowpriorityscore=0 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1805030110 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/04/2018 17:30, Cornelia Huck wrote: > On Wed, 25 Apr 2018 15:52:19 +0200 > Pierre Morel wrote: > >> On 25/04/2018 10:41, Cornelia Huck wrote: >>> On Thu, 19 Apr 2018 16:48:07 +0200 >>> Pierre Morel wrote: >>>> diff --git a/drivers/s390/cio/vfio_ccw_private.h b/drivers/s390/cio/vfio_ccw_private.h >>>> index 3284e64..93aab87 100644 >>>> --- a/drivers/s390/cio/vfio_ccw_private.h >>>> +++ b/drivers/s390/cio/vfio_ccw_private.h >>>> @@ -76,7 +76,7 @@ enum vfio_ccw_state { >>>> */ >>>> enum vfio_ccw_event { >>>> VFIO_CCW_EVENT_NOT_OPER, >>>> - VFIO_CCW_EVENT_IO_REQ, >>>> + VFIO_CCW_EVENT_SSCH_REQ, >>>> VFIO_CCW_EVENT_INTERRUPT, >>>> VFIO_CCW_EVENT_SCH_EVENT, >>>> /* last element! */ >>> I don't think we should separate the ssch handling. The major >>> difference to halt/clear is that it needs channel program translation. >>> Everything else (issuing the instruction and processing the interrupt) >>> are basically the same. If we just throw everything at the hardware >>> and let the host's channel subsystem figure it out, we already should >>> be fine with regard to most of the races. >> We must test at a moment or another the kind of request we do, >> cancel, halt and clear only need the subchannel id in register 1 and as >> you said are much more direct to implement. >> >> If we do not separate them here, we need a switch in the "do_io_request" >> function. >> Is it what you mean? > Yes. Most of the handling should be the same for any function. I really don't know, the 4 functions are quite different. - SSCH uses an ORB, and has a quite long kernel execution time for VFIO - there is a race between SSCH and the others instructions - XSCH makes subchannel no longer start pending, also reset the busy indications - CSCH cancels both SSCH and HSCH instruction, and perform path management - HSCH has different busy (entry) conditions But since they are not implemented today, I can keep the old name. -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany