Received: by 10.223.185.116 with SMTP id b49csp7231459wrg; Thu, 1 Mar 2018 02:00:58 -0800 (PST) X-Google-Smtp-Source: AG47ELu3FqgzvpkKXYNXVIloBsrbQ7gjhWtYL3cazsm5Mp//63IVn4Mdcj5VjiG+Kd6t7fVsqY+T X-Received: by 10.99.125.78 with SMTP id m14mr1070654pgn.391.1519898458235; Thu, 01 Mar 2018 02:00:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1519898458; cv=none; d=google.com; s=arc-20160816; b=R2YV1tXQ3H7zJVtFavKLE30TxSd49vRvBZKd9tk+6T7ExSkwgPF4oGQhtJlnhE3SQV F6SEjFg2o8aZI7CjPQ3uHguOqi48kGbdi4/YnleNO8TADrySuqm/8RMRAcN/7igsVQFS EHVv1VheLYYwh+0KH6ws9cElPOy8rB7uT8k9F9lVFdOhCFU4dhqg5cNjhtBieunUj8WT GtJOORIyf6Lrt+Yw8pwPcQ4zjaeqw2kOqMKfUL0HPbqzQP7PHpqNlbeYCpgjQs8zP5br QqeT20GFZyzVgumere2I61WgbN5kQhysKcOrPS5jVxsaoxhrmof1VOMxZYsxxdSZo9S7 R60Q== 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=KSqWlKPYFFk91uFkuqh8+H73QImsMEWzzeRcv6sVj8M=; b=m5x147L4RmkTqwNRtljia32ToSuQzYDYN/wfZA7k0vUYMxvgOXQnn4B8fm8qD4Lo6v lWsuAU42Tsvc965C4vWdVfEfAjRoF9K8VZb6uGWkJECuudua1sEWtjBv92bi7Kbv7bWu vey20a517koP7l5iFXaHRwpkVVFc/OWzrY344K9F3IYuu6dzWY6/jJO1Q4ZCQavVI89l bcnf6j+w4a0Ng275OVvBTqoqgOauSs1g5j+7njfPihA1Cj4Ny+D/cS7o9wiGS9v64SxE ON+OId+5iRz/Z/d6BFuBXnJibL8Zrn7CuHpDEvnY9hIhV1U9UowwlD+AyknbefJktncA v5NA== 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 r10si2256376pgd.302.2018.03.01.02.00.39; Thu, 01 Mar 2018 02:00:58 -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 S967356AbeCAJ71 (ORCPT + 99 others); Thu, 1 Mar 2018 04:59:27 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:55768 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S967148AbeCAJ7V (ORCPT ); Thu, 1 Mar 2018 04:59:21 -0500 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0EE6084222; Thu, 1 Mar 2018 09:59:21 +0000 (UTC) Received: from gondolin (ovpn-117-50.ams2.redhat.com [10.36.117.50]) by smtp.corp.redhat.com (Postfix) with ESMTP id DA7712026E04; Thu, 1 Mar 2018 09:59:17 +0000 (UTC) Date: Thu, 1 Mar 2018 10:59:15 +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 01/15] KVM: s390: refactor crypto initialization Message-ID: <20180301105915.5c871524.cohuck@redhat.com> In-Reply-To: References: <1519741693-17440-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1519741693-17440-2-git-send-email-akrowiak@linux.vnet.ibm.com> <20180228183741.5276e3d3.cohuck@redhat.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.4 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Thu, 01 Mar 2018 09:59:21 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.2]); Thu, 01 Mar 2018 09:59:21 +0000 (UTC) for IP:'10.11.54.4' DOMAIN:'int-mx04.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 Wed, 28 Feb 2018 16:23:29 -0500 Tony Krowiak wrote: > On 02/28/2018 12:37 PM, Cornelia Huck wrote: > > On Tue, 27 Feb 2018 09:27:59 -0500 > > Tony Krowiak wrote: > >> diff --git a/arch/s390/kvm/kvm-ap.c b/arch/s390/kvm/kvm-ap.c > >> new file mode 100644 > >> index 0000000..5305f4c > >> --- /dev/null > >> +++ b/arch/s390/kvm/kvm-ap.c > >> @@ -0,0 +1,47 @@ > >> +/* > >> + * Adjunct Processor (AP) configuration management for KVM guests > >> + * > >> + * Copyright IBM Corp. 2017 > >> + * > >> + * Author(s): Tony Krowiak > >> + */ > >> + > >> +#include > >> +#include > >> + > >> +#include "kvm-s390.h" > >> + > >> +static int kvm_ap_apxa_installed(void) > >> +{ > >> + int ret; > >> + struct ap_config_info config; > >> + > >> + ret = ap_query_configuration(&config); > > Doesn't that introduce a dependency on CONFIG_ZCRYPT? > It does, but AFAIK zcrypt is built into the kernel. Or is that not what > you are asking? It is built into the kernel (and not into a module) if CONFIG_ZCRYPT is set. When I compile a kernel with CONFIG_KVM set and CONFIG_ZCRYPT unset, with this patch applied I get arch/s390/kvm/kvm-ap.o: In function `kvm_ap_apxa_installed': /home/cohuck/git/linux/arch/s390/kvm/kvm-ap.c:19: undefined reference to `ap_query_configuration' So I'm afraid you cannot use ap_query_configuration() in base s390 kvm code unless you move that function to a place where it is always built (or at least always built if either CONFIG_KVM or CONFIG_ZCRYPT are set).