Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp6189399yba; Thu, 11 Apr 2019 14:06:05 -0700 (PDT) X-Google-Smtp-Source: APXvYqxQSbB2WwQiJ66EzYylqv/zVJ34IvHjFgSm/Ru2+Uy/egMUcrZHCvrMYMXKxIbcWL88RCts X-Received: by 2002:a65:6496:: with SMTP id e22mr49111014pgv.249.1555016765412; Thu, 11 Apr 2019 14:06:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1555016765; cv=none; d=google.com; s=arc-20160816; b=DohAD3ME78uuaLOSZeTzs8UP8KLX+FoO1NzHSS0vX4RbKhfPgo4nghQdEum21BRZTU Ixgs0WOqZ+zE8xuVIOhcfufip2AnKVS97UoaSZ2So2lQEUO4mYvrph5Lxkspslyn1fVc St7HFbppYwna5SsLQNzxP2qCai+yFnSiDqJ7qVVdmeMz12UwQSGMOuWIh8LrM+L1w/oK 5awEtmMR5XyRktG+QFgOVXiGhodeBPBCNdi0gmWOfUXh6jTHnCoeitphmMjm37hzUXQt xMM5NYLUCm/RzF7SkpVsB1O1AMRAjog+qdPfxdz1t6sxvkpe4BUfCimwziiQ0dfpsElB VCjQ== 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=P/ZkmtCKzOGWgs1wwnUwQ8SRcCRc/bNmbA7ZYRVdNCo=; b=KXtqEluuXq2fO/t3XHz38LOrXg/UL93zvUwixHbZ8eAY8t+Bn5F4f1HNYOzLygXzhM XLdjKIjq8tNnZ8DFfQrglVYOLkaD4MVbYVApijqbh/6EG1ikNjRHRvOrVm1EK7vywqTE dmzw3OHrhagGKuhgwuf62ENeyzTiq7dTgK9jIaoMZpvPjtHBbxfzGltTB66ynUdeXj0C /QVl7sPjgwanGJbYXnr19A0wimFqFslZMM7X8WIXMsRKQiikZILwyY3KCMYdrmO3yV8T j8wgLC1rL7QPVaBzxMUtC2O5R+SA8vVzyoaDRhZy7BYxumJTHgaJrbfoTjy5Vv81y2cy uE4g== 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 e7si27248141pgc.307.2019.04.11.14.05.49; Thu, 11 Apr 2019 14:06:05 -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 S1726788AbfDKVDi (ORCPT + 99 others); Thu, 11 Apr 2019 17:03:38 -0400 Received: from mx0b-001b2d01.pphosted.com ([148.163.158.5]:42872 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726655AbfDKVDi (ORCPT ); Thu, 11 Apr 2019 17:03:38 -0400 Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x3BKpHLY119483 for ; Thu, 11 Apr 2019 17:03:36 -0400 Received: from e11.ny.us.ibm.com (e11.ny.us.ibm.com [129.33.205.201]) by mx0b-001b2d01.pphosted.com with ESMTP id 2rtbqmuk1h-1 (version=TLSv1.2 cipher=AES256-GCM-SHA384 bits=256 verify=NOT) for ; Thu, 11 Apr 2019 17:03:36 -0400 Received: from localhost by e11.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 11 Apr 2019 22:03:35 +0100 Received: from b01cxnp22035.gho.pok.ibm.com (9.57.198.25) by e11.ny.us.ibm.com (146.89.104.198) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; (version=TLSv1/SSLv3 cipher=AES256-GCM-SHA384 bits=256/256) Thu, 11 Apr 2019 22:03:31 +0100 Received: from b01ledav005.gho.pok.ibm.com (b01ledav005.gho.pok.ibm.com [9.57.199.110]) by b01cxnp22035.gho.pok.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id x3BL3RBB33947792 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 11 Apr 2019 21:03:27 GMT Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id B076EAE05F; Thu, 11 Apr 2019 21:03:27 +0000 (GMT) Received: from b01ledav005.gho.pok.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 5DCC5AE05C; Thu, 11 Apr 2019 21:03:27 +0000 (GMT) Received: from akrowiak-ThinkPad-P50.endicott.ibm.com (unknown [9.60.75.235]) by b01ledav005.gho.pok.ibm.com (Postfix) with ESMTPS; Thu, 11 Apr 2019 21:03:27 +0000 (GMT) From: Tony Krowiak To: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org Cc: freude@linux.ibm.com, borntraeger@de.ibm.com, cohuck@redhat.com, frankja@linux.ibm.com, david@redhat.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, pmorel@linux.ibm.com, pasic@linux.ibm.com, alex.williamson@redhat.com, kwankhede@nvidia.com, Tony Krowiak Subject: [PATCH 0/7] s390: vfio-ap: dynamic configuration support Date: Thu, 11 Apr 2019 17:03:17 -0400 X-Mailer: git-send-email 2.7.4 X-TM-AS-GCONF: 00 x-cbid: 19041121-2213-0000-0000-000003752B8C X-IBM-SpamModules-Scores: X-IBM-SpamModules-Versions: BY=3.00010910; HX=3.00000242; KW=3.00000007; PH=3.00000004; SC=3.00000284; SDB=6.01187698; UDB=6.00622145; IPR=6.00968461; MB=3.00026399; MTD=3.00000008; XFM=3.00000015; UTC=2019-04-11 21:03:33 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 19041121-2214-0000-0000-00005DFD1D0D Message-Id: <1555016604-2008-1-git-send-email-akrowiak@linux.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:,, definitions=2019-04-11_13:,, 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 mlxscore=0 impostorscore=0 mlxlogscore=847 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1810050000 definitions=main-1904110136 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series extends the crypto adapter pass-through support to provide safeguards against inadvertent sharing of AP resources between guests and/or the host, and to implement more of the s390 AP architecture related to provisioning and dynamic configuration of AP resources. Tony Krowiak (7): s390: zcrypt: driver callback to indicate resource in use s390: vfio-ap: implement in-use callback for vfio_ap driver s390: vfio-ap: allow assignment of unavailable AP resources to mdev device s390: vfio-ap: allow hot plug/unplug of AP resources using mdev device s390: vfio-ap: wait for queue empty on queue reset s390: vfio-ap: handle dynamic config/deconfig of AP adapter s390: vfio-ap: update documentation Documentation/s390/vfio-ap.txt | 147 +++++++++++---- arch/s390/include/asm/kvm_host.h | 2 + arch/s390/kvm/kvm-s390.c | 37 ++++ drivers/s390/crypto/ap_bus.c | 138 ++++++++++++++- drivers/s390/crypto/ap_bus.h | 3 + drivers/s390/crypto/vfio_ap_drv.c | 39 +++- drivers/s390/crypto/vfio_ap_ops.c | 324 +++++++++++++++------------------- drivers/s390/crypto/vfio_ap_private.h | 2 + 8 files changed, 471 insertions(+), 221 deletions(-) -- 2.7.4