Received: by 10.192.165.148 with SMTP id m20csp3283342imm; Mon, 23 Apr 2018 04:02:48 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/VckHeYzrpWc2BIcgkE7Myf1+R/HARK/bz4hj17jjzF3IRFQYi5Xt1e3mZAYbqiev1H9M2 X-Received: by 10.101.101.150 with SMTP id u22mr16343930pgv.368.1524481368557; Mon, 23 Apr 2018 04:02:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524481368; cv=none; d=google.com; s=arc-20160816; b=tsJcpuHAtY5Q4eU6O0OtBmdTmXkzn1ma30BI/K4D6Ah0mMzdicFhpTTLLY9xx5t6yc SDvrtBSgRGqDt2S94435sUs197Q3oyxDbbOEHD8UDletVp6rirU8oLzHUe/iKu0Vya9n 7Zn/PAI5q4y+DlbzBkpbyXziJJHMfzizFolIuKXsPfYsAqBDO4QZUW2HQihhydpjzCHj r8GktKOv3SblpFWtBgW7iuBwPgoi7PieIg8EoQkamY5nAXlG7ipSesnV1Np2/rJ3GZW+ AI91r5IOdBO1g6SoVkkAjOVQlAPFcR+7y5gY71mLBjRZujxhTr9ZDQN62EFvMqRdYwyh 4Pwg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=ER5l+Zj0CH0JMO/d+PjvF1Hh3vda2gbSd6PxKnYcBF0=; b=g4ByPty8SJLtpN4RbczwAYDRffbQbPyNW7dLR0hBiRde1j66zjmUNiNLyJDfGiFRj9 qTRyXqwoevCKly9DT9TzJwfD9u3a6fWbttl9KQtz8zjCMVDLcne5Ob9tsF/OeM1qZ36C fJ5L+2ZMbME9ctANBBsi44PGxAJf7pBv9fbvIKuE3ATotuCgSwokDNLBL4/j6TTy447s io6fIgChV4/b6OV19Jg5osCFof02UCQ24fqOc4L+hd9MUjMEM17efkthmS8tDjkVEZrQ MVvL68SGjJf9x0kbRWQuHMHVBSq87tRk+KCJFeOaDf4mOhyvt1Rf8exYLdE4ytkdXn6A 5Rjw== 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 g17si9342276pgv.372.2018.04.23.04.02.33; Mon, 23 Apr 2018 04:02:48 -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 S1754751AbeDWLB2 (ORCPT + 99 others); Mon, 23 Apr 2018 07:01:28 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:54712 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754651AbeDWLBY (ORCPT ); Mon, 23 Apr 2018 07:01:24 -0400 Received: from pps.filterd (m0098404.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w3NAwvNW051441 for ; Mon, 23 Apr 2018 07:01:24 -0400 Received: from e38.co.us.ibm.com (e38.co.us.ibm.com [32.97.110.159]) by mx0a-001b2d01.pphosted.com with ESMTP id 2hhc9enkay-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Mon, 23 Apr 2018 07:01:23 -0400 Received: from localhost by e38.co.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Mon, 23 Apr 2018 05:01:22 -0600 Received: from b03cxnp08026.gho.boulder.ibm.com (9.17.130.18) by e38.co.us.ibm.com (192.168.1.138) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Mon, 23 Apr 2018 05:01:19 -0600 Received: from b03ledav001.gho.boulder.ibm.com (b03ledav001.gho.boulder.ibm.com [9.17.130.232]) by b03cxnp08026.gho.boulder.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w3NB1Grm11469204; Mon, 23 Apr 2018 04:01:18 -0700 Received: from b03ledav001.gho.boulder.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 0A6DD6E03A; Mon, 23 Apr 2018 05:01:18 -0600 (MDT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by b03ledav001.gho.boulder.ibm.com (Postfix) with ESMTP id 4B81C6E03D; Mon, 23 Apr 2018 05:01:16 -0600 (MDT) From: Dong Jia Shi To: linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, kvm@vger.kernel.org Cc: cohuck@redhat.com, borntraeger@de.ibm.com, bjsdjshi@linux.ibm.com, pasic@linux.ibm.com, pmorel@linux.ibm.com, Dong Jia Shi Subject: [PATCH v2 0/5] vfio: ccw: error handling fixes and improvements Date: Mon, 23 Apr 2018 13:01:08 +0200 X-Mailer: git-send-email 2.13.5 X-TM-AS-GCONF: 00 x-cbid: 18042311-0028-0000-0000-0000097C2816 X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00008905; HX=3.00000241; KW=3.00000007; PH=3.00000004; SC=3.00000257; SDB=6.01022058; UDB=6.00521638; IPR=6.00801293; MB=3.00020722; MTD=3.00000008; XFM=3.00000015; UTC=2018-04-23 11:01:21 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18042311-0029-0000-0000-00003A7DD04B Message-Id: <20180423110113.59385-1-bjsdjshi@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2018-04-23_05:,, 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-1804230116 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Dear Reviewers, Here is a new version for this patch series. We didn't get agreement on patch #5 (#4 in v1) in the former cycle though, I made it based on my understanding. We can continue discussing on it. Changelog: v1->v2: - #1. Reworded commit message and comment, plus some typo fixes. - #2. New patch. - #3. Added the missing suggested-by Pierre. Fixed typos. Added sanity check on pa->pa_iova_pfn and updated comments accordingly. - #4. Removed unused idaw_nr. - #5. Replaced leading white spaces with TABs. Traced the function in anycase. Dong Jia Shi (3): vfio: ccw: shorten kernel doc description for pfn_array_pin() vfio: ccw: refactor and improve pfn_array_alloc_pin() vfio: ccw: set ccw->cda to NULL defensively Halil Pasic (2): vfio: ccw: fix cleanup if cp_prefetch fails vfio: ccw: add traceponits for interesting error paths drivers/s390/cio/Makefile | 1 + drivers/s390/cio/vfio_ccw_cp.c | 134 ++++++++++++++++++++------------------ drivers/s390/cio/vfio_ccw_fsm.c | 16 ++++- drivers/s390/cio/vfio_ccw_trace.h | 77 ++++++++++++++++++++++ 4 files changed, 164 insertions(+), 64 deletions(-) create mode 100644 drivers/s390/cio/vfio_ccw_trace.h -- 2.13.5