Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp503101ybv; Thu, 13 Feb 2020 04:38:18 -0800 (PST) X-Google-Smtp-Source: APXvYqzelo/C5rNOERLTTQglxYAO4uvpIc/T4BuIC7OxqAwfoBnb2AIUV2a5efaQ5lgg2ybZY3++ X-Received: by 2002:a9d:bb8:: with SMTP id 53mr12089871oth.150.1581597498369; Thu, 13 Feb 2020 04:38:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581597498; cv=none; d=google.com; s=arc-20160816; b=aLbUyqAmriEnsgHn/419N8jM0pqFMqAngBbRqfAZoQ/WaCgRBOYKiJhtP0nQ0HokOi bWK5rWN6m0A3bObYMAEnbdkBjrrU5jxSbG6RGBg6fxOzJQiUhTpA/nLNcqVgUdp9d5IU sC8dzofMsMjVUMCY/FK0XnTfyJq53vGA35aefTWHWM6Xa6rmhkwkvrq6K2KZCM9K+VU1 mJJr6QJE3o2cDU9RChY6NtBdUFAYgchPfbNt/PW0JPLDDNJiDquHOUh5d0B7/7L8rBRr f6pYY2NvIAfzr9thvFlSWLNGaniVMIqakrRF4lvLgRMxNYJbbLNv33ZBKmpXihRzaVIb OvYg== 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; bh=Nhjq56QoSiwss3OKErKabEd/lIw25LzsgPSYbCgctdc=; b=xsM8YtWW8ShiDF6RahxxNgrtEkuaBGapt1qfcSgMcPU46iLTivS67tiOB8YifuttgA 22Vidu8nwAGNm7Rw/hmRMoqx/iuRnq3YIG7UeIrpop7yFh4etezuDDCAQVCdTiacMISx XyELF5Rpk7gHAoJT6ErlmhqZYPX4t5Q3/ntc7weO7c98rJEQjiGyksk1vK/Gs0ooyIvA ZjHkpxa7jKwA2iwInoEh8i7VzLyKfbyhvhZ/AXQgqdAcxS0GU1YjUcJyB4B1C30rML3F 6bT5I74LpgdAyO9AqQcOFkOmMkzJ0yVsPt1MzcGR/+OmpShpGm6j2JWKlUENRYmfV0wt ElLA== 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 f187si1119883oia.218.2020.02.13.04.38.06; Thu, 13 Feb 2020 04:38:18 -0800 (PST) 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 S1729937AbgBMMhz (ORCPT + 99 others); Thu, 13 Feb 2020 07:37:55 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:53386 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729511AbgBMMhy (ORCPT ); Thu, 13 Feb 2020 07:37:54 -0500 Received: from pps.filterd (m0098394.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id 01DCYZDm057135 for ; Thu, 13 Feb 2020 07:37:54 -0500 Received: from e06smtp05.uk.ibm.com (e06smtp05.uk.ibm.com [195.75.94.101]) by mx0a-001b2d01.pphosted.com with ESMTP id 2y4qysw7w6-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 13 Feb 2020 07:37:53 -0500 Received: from localhost by e06smtp05.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Feb 2020 12:37:51 -0000 Received: from b06cxnps4074.portsmouth.uk.ibm.com (9.149.109.196) by e06smtp05.uk.ibm.com (192.168.101.135) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 13 Feb 2020 12:37:48 -0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06cxnps4074.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 01DCbkJR12583112 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 13 Feb 2020 12:37:46 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id BBF0852054; Thu, 13 Feb 2020 12:37:46 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTP id 3FBE052057; Thu, 13 Feb 2020 12:37:46 +0000 (GMT) From: Halil Pasic To: "Michael S. Tsirkin" , Jason Wang Cc: Halil Pasic , Paolo Bonzini , Stefan Hajnoczi , Jens Axboe , virtualization@lists.linux-foundation.org, linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Christian Borntraeger , Viktor Mihajlovski , Cornelia Huck , Ram Pai , Thiago Jung Bauermann , "Lendacky, Thomas" Subject: [PATCH 0/2] virtio-blk: improve handling of DMA mapping failures Date: Thu, 13 Feb 2020 13:37:26 +0100 X-Mailer: git-send-email 2.17.1 X-TM-AS-GCONF: 00 x-cbid: 20021312-0020-0000-0000-000003A9C68C X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 20021312-0021-0000-0000-00002201B132 Message-Id: <20200213123728.61216-1-pasic@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.138,18.0.572 definitions=2020-02-13_03:2020-02-12,2020-02-13 signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 phishscore=0 priorityscore=1501 suspectscore=0 mlxlogscore=969 lowpriorityscore=0 impostorscore=0 spamscore=0 bulkscore=0 adultscore=0 mlxscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2001150001 definitions=main-2002130098 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Two patches are handling new edge cases introduced by doing DMA mappings (which can fail) in virtio core. I stumbled upon this while stress testing I/O for Protected Virtual Machines. I deliberately chose a tiny swiotlb size and have generated load with fio. With more than one virtio-blk disk in use I experienced hangs. The goal of this series is to fix those hangs. Halil Pasic (2): virtio-blk: fix hw_queue stopped on arbitrary error virtio-blk: improve virtqueue error to BLK_STS drivers/block/virtio_blk.c | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) base-commit: 39bed42de2e7d74686a2d5a45638d6a5d7e7d473 -- 2.17.1