Received: by 10.192.165.148 with SMTP id m20csp1598017imm; Thu, 3 May 2018 02:05:42 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoPQR9cUoHK8/Bjg289BTZsQGMMD9GrhBED2+31Yy+IF2h5hqKioyyDgHwKWxz1huTLnRX6 X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr22670786plx.302.1525338341959; Thu, 03 May 2018 02:05:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1525338341; cv=none; d=google.com; s=arc-20160816; b=BVpgOPbTZM6ru0neUd2Opm3KfzO1tyWU9IJCaxorNZBCvxU/XArNr/YKy/8UMqcJ47 C5C68ZTPRdCD0zHbaW+iHipoGTF6nj8qlaoaVYis+8JojYafa1/Wt6WJWrv8Kd57RJsd BPAIbfET8yikj4diieNbrNHLrqJb7G7vsfXnmKzaPOwXC+7rz2r2pYWBGAAvHkhDzbuJ LyB372d2f+d/Pfu91JJ1XeHd/8Udmd03nKpa0MkP7qkVcxc4/BGfxzNqa5keBPY1X99+ lKQWxkwcjTKVIwlN8/C96ChUOFh0JuN+9ygdQx1+9veDP0lEg8U4JjT/NbBrt8rrpgX3 qCEw== 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=PVPsrPrmvovk64XZ5w1VJPAHf1XNwMtOqti5XxfRFvY=; b=ZB5WKWImYlJBmhEcD6IogX3UuelVD1biTaiPZ5xuOLgfLf33uf4lYYxoHjvEthsNgo qXyBgAwlnlmG/q1vxt6VNzW9RVC1unGLkG40HuLePAaRLUE2LH7FtyUXRjxJ8uNpQzVJ lvH3sxCtLO5PY0tXVPkYfJ3d4YaWZpXveCvuhtat+M8DpLMCTeLu7noJV1nXvTLwFutW OqA6nSpQ8++HnLSqzYgvSXTgi07b4h0Ma9+GoP3rHO8yDgZigpThD9U8h4gwvTkauEDD Zf+Z8HzeBh8k+LLz2QKXnUG0lUAcx17zlpF8UUS6p1hflOpmbngx3zdiavMUYG7bClVq PCpQ== 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 j6si13406007pfc.351.2018.05.03.02.05.27; Thu, 03 May 2018 02:05:41 -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 S1751269AbeECJCp (ORCPT + 99 others); Thu, 3 May 2018 05:02:45 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54054 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751173AbeECJCl (ORCPT ); Thu, 3 May 2018 05:02:41 -0400 Received: from pps.filterd (m0098399.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w4390kZ2138497 for ; Thu, 3 May 2018 05:02:40 -0400 Received: from e06smtp11.uk.ibm.com (e06smtp11.uk.ibm.com [195.75.94.107]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hqy9r0fen-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 03 May 2018 05:02:40 -0400 Received: from localhost by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 3 May 2018 10:02:37 +0100 Received: from b06cxnps3074.portsmouth.uk.ibm.com (9.149.109.194) by e06smtp11.uk.ibm.com (192.168.101.141) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 3 May 2018 10:02:34 +0100 Received: from d06av25.portsmouth.uk.ibm.com (d06av25.portsmouth.uk.ibm.com [9.149.105.61]) by b06cxnps3074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w4392YcC1376540; Thu, 3 May 2018 09:02:34 GMT Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 884A511C04C; Thu, 3 May 2018 09:54:08 +0100 (BST) Received: from d06av25.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5703E11C054; Thu, 3 May 2018 09:54:08 +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 09:54:08 +0100 (BST) Subject: Re: [PATCH 09/10] vfio: ccw: Suppressing the BOXED state 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-10-git-send-email-pmorel@linux.vnet.ibm.com> <20180425104429.582618f8.cohuck@redhat.com> <32efd6b2-78b0-ae44-3a64-a092f9d412fe@linux.vnet.ibm.com> <20180430174718.7b1e5651.cohuck@redhat.com> From: Pierre Morel Date: Thu, 3 May 2018 11:02:33 +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: <20180430174718.7b1e5651.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: 18050309-0040-0000-0000-000004547720 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18050309-0041-0000-0000-000020F89C4A Message-Id: <0d95b955-1567-cead-35d2-9d784b74ffa0@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-05-03_04:,, 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-1805030086 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 30/04/2018 17:47, Cornelia Huck wrote: > On Wed, 25 Apr 2018 15:55:51 +0200 > Pierre Morel wrote: > >> On 25/04/2018 10:44, Cornelia Huck wrote: >>> On Thu, 19 Apr 2018 16:48:12 +0200 >>> Pierre Morel wrote: >>> >>>> VFIO_CCW_STATE_BOXED and VFIO_CCW_STATE_BUSY are the same >>>> states. >>>> Let's only keep one: VFIO_CCW_STATE_BUSY >>>> >>>> Signed-off-by: Pierre Morel >>>> --- >>>> drivers/s390/cio/vfio_ccw_fsm.c | 9 --------- >>>> drivers/s390/cio/vfio_ccw_private.h | 1 - >>>> 2 files changed, 10 deletions(-) >>> I think they were initially supposed to cover two different things: >>> - BUSY: we're currently dealing with an I/O request >>> - BOXED: the device currently won't talk to us or we won't talk to it >>> >>> It seems we never really did anything useful with BOXED; but should we? >>> >> I do not know what. > The BUSY state is something we know that we'll get out of soon-ish > (when the I/O request has finished). We could conceivably use a timeout > and drop to the BOXED state if we don't get an answer. Absolutely, timeout on requests is something I wanted to do in a second series. > > I think this plays also into the reserve/release and path handling > questions. One of the more common reasons for devices to become boxed > I've seen is another system doing a reserve on a dasd. > -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany