Received: by 10.213.65.68 with SMTP id h4csp534386imn; Tue, 27 Mar 2018 04:18:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+GOxubwyi6zjE/RMLrMMXeiP1sU566nEAHFx+b5eSwROeoW0UaF/IhdjSwm4zzDFYepSay X-Received: by 10.98.133.212 with SMTP id m81mr8732800pfk.61.1522149524223; Tue, 27 Mar 2018 04:18:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522149524; cv=none; d=google.com; s=arc-20160816; b=yxFrx5147vnYQ0AGz+jYfW939TmvEIp9kq4d0XdC5OA9KWt4fx+linJSgsViQARkNy mxH32HEVJxey+zcaCkNBpBXjk+r41JJ6r2awkKzbpo1BEt7Upu5tLmVUq53BnVYxWwCh HLf3FhuNlxHmYFHl/aY8iQUvngAC3qSvuIBpvfPblLGm9HiTeLq9a+BC3FGwbUz7E2Sp 7lLfqlbNmhg5g8v1XS+2qYmuR0bN1MuV3gF68vbXbNcvP1od0duQEuiU6bpIK2J/+bHW fQJGKjEqXn/nH6Cv6KNwizo3GkDb5jVRN2SlOVcbJyE4GKrHxv8ySlVoj/WLYZxafBAJ pvMg== 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=fdSB03P1U++6oKVfea8LWxt3ODYuq1d3IoRlczeiRIU=; b=Me62AZukHUIoHqqzgOv6tUHmbWpwPMkibvtKR+fOxl5lHmR8eTeWpeSql29YIkFLvg el4DGKfxekTOspg/R3eE6yLJybnCHlHTo9F1NTfOYvJJm8rrzjhFyK6YFFDRzisWfHuJ Z1grN0QJp4iVf2DlLbjopw77vEl1J36KXNvvz+fWoeDULVHAyFjtcwpu6wAz+T5rHn7B sfs7MHuiU5PXQ0RUtXkR+TOnSvxDRmxj7Lb5BUAO9/pJ6BRwhqJQpwa4lshYcvDh1x5g 9hPpyJ4tQaSdq12zfrfLlYFEduKL4AohW6h2DFXz+Mg0aPy8PQoQwSKjjdRxz0Jyo8Pj FLgw== 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 133si723759pgf.228.2018.03.27.04.18.30; Tue, 27 Mar 2018 04:18:44 -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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751935AbeC0LRP (ORCPT + 99 others); Tue, 27 Mar 2018 07:17:15 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:46908 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750898AbeC0LRN (ORCPT ); Tue, 27 Mar 2018 07:17:13 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.rdu2.redhat.com [10.11.54.5]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EA50540711D4; Tue, 27 Mar 2018 11:17:12 +0000 (UTC) Received: from gondolin (dhcp-192-222.str.redhat.com [10.33.192.222]) by smtp.corp.redhat.com (Postfix) with ESMTP id B369050331; Tue, 27 Mar 2018 11:17:07 +0000 (UTC) Date: Tue, 27 Mar 2018 13:17:05 +0200 From: Cornelia Huck To: Tony Krowiak Cc: Pierre Morel , 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, alifm@linux.vnet.ibm.com, mjrosato@linux.vnet.ibm.com, jjherne@linux.vnet.ibm.com, thuth@redhat.com, pasic@linux.vnet.ibm.com, berrange@redhat.com, fiuczy@linux.vnet.ibm.com, buendgen@de.ibm.com Subject: Re: [PATCH v3 05/14] s390: vfio-ap: base implementation of VFIO AP device driver Message-ID: <20180327131705.46fded40.cohuck@redhat.com> In-Reply-To: References: <1521051954-25715-1-git-send-email-akrowiak@linux.vnet.ibm.com> <1521051954-25715-6-git-send-email-akrowiak@linux.vnet.ibm.com> <1d5a5e18-1886-dd73-a17e-9bec617507ba@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.79 on 10.11.54.5 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 27 Mar 2018 11:17:13 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Tue, 27 Mar 2018 11:17:13 +0000 (UTC) for IP:'10.11.54.5' DOMAIN:'int-mx05.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 Thu, 15 Mar 2018 13:25:25 -0400 Tony Krowiak wrote: > On 03/15/2018 09:25 AM, Pierre Morel wrote: > > On 14/03/2018 19:25, Tony Krowiak wrote: > >> +config VFIO_AP > >> + def_tristate m > > not sure it must be module by default. > > I would not set it by default. > Connie also asked about this in the last review, so I will go ahead > and change it. > > > >> + prompt "VFIO support for AP devices" > >> + depends on ZCRYPT && VFIO_MDEV_DEVICE > > > > VFIO_MDEV_DEVICE is a general feature *needed* by VFIO_AP > > and has no use case by its own. If it is set it is obviously because some > > mediated device drivers needs it. > > while ZCRYPT is a Z feature which may be set without VFIO_AP. > > > > So you need: > > > > config VFIO_AP > > def_tristate n > > prompt "VFIO support for AP devices" > > depends on ZCRYPT > > select VFIO_MDEV > > select VFIO_MDEV_DEVICE > > ... > I was thinking the same just yesterday and I agree, this makes sense. OTOH, nobody else seems to do a select on these symbols so far. If you decide to go that route, you'll also need to depend on VFIO (otherwise you could end up selecting symbols with unmet dependencies). All in all, I prefer the 'depends' approach.