Received: by 10.223.185.116 with SMTP id b49csp7171346wrg; Thu, 1 Mar 2018 00:42:02 -0800 (PST) X-Google-Smtp-Source: AG47ELsY4j8joHr3OyBNW05B1mao1ohIDhSvOjwTzlywOaHq/D6P3wWfKbHEAUpgUjfPea59XH5F X-Received: by 10.101.86.73 with SMTP id m9mr949908pgs.70.1519893721894; Thu, 01 Mar 2018 00:42:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519893721; cv=none; d=google.com; s=arc-20160816; b=IoHGg7rLpOOfnGSoVRZKLG/P2+wBuip8wIcVcOC042A517HYZQWUIJfkiIntwahJfS f/+uJ1pwy4c0qsP1h2zbyhKRtpo9FK/safYMAqMXP1EuWHmL2EEc0GvUEy4HPvVOwyD3 GI4Iwvk2jwjEPhIu+0ZwR6+ExPZlXQvXLf/6zpc8qo36qtX9mYk2wonaibvjqct660mN s4qNxq0as1klq/AFzfvulJYEZFItTJDhsU3OJ+8gm6MFcrcPIrMcEteFHApd4CuyoqWS cH45ig8iGR2IaB6GzikyjmpPRvhBy1279rzGy113H/pAzssQOJH/El3HjC6aUx3D0l2t nGAQ== 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=bBq38aBK+yxBD4IIYbfDcErLJvsOBiUnaa2OIUNZ51s=; b=go5qZGqXSVH3iHxLt0YVC7f3kG6Gql2iAKfatdEqyi4rprVQVvElfwSFEWzhUYaEoR hbuv4OG2Udq8o3LfOBfkiKEKXO3a4H6KvzK8abGqePZ+q1Qex075a4Woo0ckCF4S79GJ wc77t/IRIKSYOhMbILq3iUXNe0mVe4U6uWjqC9QcxeV0Qe9LIe1DPSReC2fddWuIhroA 52crLqZ032daAp30JhDfWOrMp8KLO2ut8gK/ToV5lERE5lEYtusmy9UFRttAGMrhfShk hrG/IO/GRN7Jg/dhDMFEV4msI+6dyg0VcjFuc4B1tHng/euvMgkPvLF3UbEtf4rHvhVX JWpA== 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 w3-v6si2713316plb.441.2018.03.01.00.41.46; Thu, 01 Mar 2018 00:42:01 -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 S965940AbeCAIkv (ORCPT + 99 others); Thu, 1 Mar 2018 03:40:51 -0500 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:48006 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965804AbeCAIkt (ORCPT ); Thu, 1 Mar 2018 03:40:49 -0500 Received: from pps.filterd (m0098409.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w218ei6G026027 for ; Thu, 1 Mar 2018 03:40:49 -0500 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gecmrc38x-1 (version=TLSv1.2 cipher=AES256-SHA bits=256 verify=NOT) for ; Thu, 01 Mar 2018 03:40:48 -0500 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 1 Mar 2018 08:38:42 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (9.149.109.198) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Thu, 1 Mar 2018 08:38:39 -0000 Received: from d06av24.portsmouth.uk.ibm.com (d06av24.portsmouth.uk.ibm.com [9.149.105.60]) by b06cxnps4076.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w218cc5257737232; Thu, 1 Mar 2018 08:38:38 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id D17A842047; Thu, 1 Mar 2018 08:31:07 +0000 (GMT) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 8CC4B4203F; Thu, 1 Mar 2018 08:31:06 +0000 (GMT) Received: from [10.0.2.15] (unknown [9.152.224.49]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Thu, 1 Mar 2018 08:31:06 +0000 (GMT) Subject: Re: [PATCH v2 03/15] s390: zcrypt: externalize AP instructions available function To: Cornelia Huck , Tony Krowiak Cc: linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, freude@de.ibm.com, schwidefsky@de.ibm.com, heiko.carstens@de.ibm.com, borntraeger@de.ibm.com, kwankhede@nvidia.com, bjsdjshi@linux.vnet.ibm.com, pbonzini@redhat.com, alex.williamson@redhat.com, pmorel@linux.vnet.ibm.com, alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com, fiuczy@linux.vnet.ibm.com, buendgen@de.ibm.com References: <1519741693-17440-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1519741693-17440-4-git-send-email-akrowiak@linux.vnet.ibm.com> <20180228184155.5b397f76.cohuck@redhat.com> From: Harald Freudenberger Date: Thu, 1 Mar 2018 09:38:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: <20180228184155.5b397f76.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18030108-0008-0000-0000-000004D65604 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18030108-0009-0000-0000-00001E695904 Message-Id: <053311e4-a5a6-0007-4b6a-c24494df48c8@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-01_04:,, signatures=0 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 priorityscore=1501 malwarescore=0 suspectscore=2 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-1803010114 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 02/28/2018 06:41 PM, Cornelia Huck wrote: > On Tue, 27 Feb 2018 09:28:01 -0500 > Tony Krowiak wrote: > >> If the AP instructions are not available on the linux host, then >> AP devices can not be interpreted by the SIE. The AP bus has a >> function it uses to determine if the AP instructions are >> available. This patch provides a new function that wraps the >> AP bus's function to externalize it for use by KVM. >> >> Signed-off-by: Tony Krowiak >> Reviewed-by: Pierre Morel >> --- >> arch/s390/include/asm/ap.h | 7 +++++++ >> drivers/s390/crypto/ap_bus.c | 6 ++++++ >> 2 files changed, 13 insertions(+), 0 deletions(-) > While I don't see anything wrong with this patch as it stands, you need > to be careful to call this only from vfio-ap code (which depends on > CONFIG_ZCRYPT). > > Speaking of which: the ap_bus part cannot be a module, but only > built-in, right? So we don't get additional module complications? Right, the AP bus is not available as a module but statically build. > -- > To unsubscribe from this list: send the line "unsubscribe linux-s390" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >