Received: by 10.223.185.116 with SMTP id b49csp6458240wrg; Wed, 28 Feb 2018 09:42:59 -0800 (PST) X-Google-Smtp-Source: AH8x227ewjHu6mRcmLaBkvpBHtXlH9Win3+jq34TCMWq4v7TwlFma2wmbbmxBMiJqMIAY5UiYYf4 X-Received: by 10.99.140.85 with SMTP id q21mr14538432pgn.51.1519839779468; Wed, 28 Feb 2018 09:42:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519839779; cv=none; d=google.com; s=arc-20160816; b=WGO6R6C0DYCR2m6lT84DWbH7qL2bauZlpR2bT1SJYbv5HGmlTmpjyeeqJLwj+gRYAy OBBMO+7z7wsr4AKfLLmWV050VQnYkTbVYOW04f9hELo6MOlkJU1y3YJtLVWcLSjy7H+A hkRQ58A9TpIj/ffhPp0DsfLfQlu8Sn9z/fPZ8H+TaS9MVQgS/HskWRLguc+jVDRi/+RI l3cG7HAiYkDY+UymmuFBi2guOagaUDTTe60OKy19EU5OSV7tTdbnBBPDEN2UsU/PMjzm knKms+/aFHFAFmnjRd1oC3MfFlmoYe+CuZ7T++Bp/0vVzVKZ8tdxIcNFwGvEam4CyQ6I jF1g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:message-id:subject:cc:to:from :date:arc-authentication-results; bh=g3RJUKNfxqAH9PzfQ4j63QfEjY+IatMFcH+08EeagY4=; b=dcrBvvKFbBFg/7xJHp1L5ceLPoxeTBxl4jm1+KMpqGfp3nb5oP21dAR6GiOarRcRpb 9TtTk47QQcjDvx4P6xua3sphHKw1tvIINtSc9y1UoPO4L0+1y/1I+Pzb/R2nTXRrPEdt MV4kMAQOodmRikniMpOGkFkHBYMgTdA8ihND/mnblCmiOX6yhSfp+M0DNWKDzjK/Xh2X wBnEe0psf4etVrb+y4VAJMTwcAf+4h2cUgpqd6O2QCKJbxc2QiObjekyxRbXb5mNAvhr O9kbv0N2Tt4OQdtJu5r0gl1vfheqg5OvX/C35rthY9q5xTDjKg9apGBw4o2nj9AMbtcy yF7A== 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9-v6si1526780plr.57.2018.02.28.09.42.44; Wed, 28 Feb 2018 09:42:59 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933312AbeB1RmG (ORCPT + 99 others); Wed, 28 Feb 2018 12:42:06 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50522 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932618AbeB1RmE (ORCPT ); Wed, 28 Feb 2018 12:42:04 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 546BB8D74A; Wed, 28 Feb 2018 17:42:03 +0000 (UTC) Received: from gondolin (ovpn-117-87.ams2.redhat.com [10.36.117.87]) by smtp.corp.redhat.com (Postfix) with ESMTP id 74C0110AF9D1; Wed, 28 Feb 2018 17:41:58 +0000 (UTC) Date: Wed, 28 Feb 2018 18:41:55 +0100 From: Cornelia Huck To: 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 Subject: Re: [PATCH v2 03/15] s390: zcrypt: externalize AP instructions available function Message-ID: <20180228184155.5b397f76.cohuck@redhat.com> In-Reply-To: <1519741693-17440-4-git-send-email-akrowiak@linux.vnet.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> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 28 Feb 2018 17:42:03 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Wed, 28 Feb 2018 17:42:03 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'cohuck@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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?