Received: by 10.213.65.68 with SMTP id h4csp729957imn; Tue, 27 Mar 2018 07:46:37 -0700 (PDT) X-Google-Smtp-Source: AG47ELuDGqcmlyolHixMSiQszcvXclUAMZrXgC8WbGO8dArLhwR75OipjQ8AsobCDdHeUDxpcaqo X-Received: by 2002:a17:902:822:: with SMTP id 31-v6mr19599857plk.200.1522161997123; Tue, 27 Mar 2018 07:46:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522161997; cv=none; d=google.com; s=arc-20160816; b=v6X2UNr+sSKx16LL4YOsyVlAJJMD5CnfFPpiGCHO60qED+vze1xKmKCyzGagwt//8C 7Y3MeSZtYyF+CfJF946ja/J0kg69bNQjdLeTIX1PsjJ5mdJg97BqiyRdHOCLeKWGitMo Vuc+TMtts5XyUQimcU7hIEI0LcAWxU3sOJdc5zJUZCoJRBSp1MRrC5RNtaL6zY7oRXiC oUlU0fRrywRZ5UoRYjCZ+n4fboIIWLiTMZ9ZHzVLCtxBrHkoDlWduWjKzrACEtJgdQGA 1yS5a48bmhBZ5pKDG7nos2KBcS3IWRFCwPOhr4MBnoTlbJ/Q6swUOFPPzxrM9i+Z08ik izhg== 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=4IbbCDWHRecamYHwEKXaAvIth5ttCqzhmW5yICZasEA=; b=nBau9I5NYR5FRgedCoDHwn9JG9VqRf11ZPwd3wp3asK49X7MGV3//iOaCK/1RzrrQ+ 87ZC3/zY+yiyE3ClW+I2wf8LpTj/9ui9vLzqYHKjaudbElkilMEaUB3pj1SKiA6XEL1U BsAMDPLg9PUrGSPd9tAGkQARcPJVb+FTf5HqF9KQap4ILmNts17H8SZUeXFv2mll40ty RPBH2a4thuHs8AiaGVOCn2r0WpPLAjGTuSnr7mJ0YYpit/PqsVEKmsAE6D7ImcBFdztO rae5PGYYH5+XDKL37l2MnOk7v8680OCnhk4IPsQnwiHLPGw6imy1jyvZQltKzZlK6NLa p+KA== 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 s5-v6si1408133plp.28.2018.03.27.07.46.22; Tue, 27 Mar 2018 07:46:37 -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 S1752307AbeC0OpP (ORCPT + 99 others); Tue, 27 Mar 2018 10:45:15 -0400 Received: from mx0a-001b2d01.pphosted.com ([148.163.156.1]:49768 "EHLO mx0a-001b2d01.pphosted.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752210AbeC0OpM (ORCPT ); Tue, 27 Mar 2018 10:45:12 -0400 Received: from pps.filterd (m0098410.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.16.0.22/8.16.0.22) with SMTP id w2REiaI2060010 for ; Tue, 27 Mar 2018 10:45:12 -0400 Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) by mx0a-001b2d01.pphosted.com with ESMTP id 2gyquegjg1-1 (version=TLSv1.2 cipher=AES256-SHA256 bits=256 verify=NOT) for ; Tue, 27 Mar 2018 10:45:11 -0400 Received: from localhost by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 27 Mar 2018 15:45:07 +0100 Received: from b06cxnps3075.portsmouth.uk.ibm.com (9.149.109.195) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Tue, 27 Mar 2018 15:45:03 +0100 Received: from d06av24.portsmouth.uk.ibm.com (mk.ibm.com [9.149.105.60]) by b06cxnps3075.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id w2REj3Nx61866212; Tue, 27 Mar 2018 14:45:03 GMT Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id AE5A942042; Tue, 27 Mar 2018 15:37:03 +0100 (BST) Received: from d06av24.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 304BA42045; Tue, 27 Mar 2018 15:37:03 +0100 (BST) Received: from [9.152.224.146] (unknown [9.152.224.146]) by d06av24.portsmouth.uk.ibm.com (Postfix) with ESMTP; Tue, 27 Mar 2018 15:37:03 +0100 (BST) Subject: Re: [PATCH v3 05/14] s390: vfio-ap: base implementation of VFIO AP device driver 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, 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 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> <20180327131705.46fded40.cohuck@redhat.com> From: Pierre Morel Date: Tue, 27 Mar 2018 16:45:02 +0200 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: <20180327131705.46fded40.cohuck@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-TM-AS-GCONF: 00 x-cbid: 18032714-0008-0000-0000-000004E2D502 X-IBM-AV-DETECTION: SAVI=unused REMOTE=unused XFE=unused x-cbparentid: 18032714-0009-0000-0000-00001E760FFD Message-Id: <29443c81-19b4-5811-798c-e324b34c083a@linux.vnet.ibm.com> X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10432:,, definitions=2018-03-27_06:,, 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 impostorscore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1709140000 definitions=main-1803270148 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/03/2018 13:17, Cornelia Huck wrote: > 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 I think a select is better (again). > (otherwise you could end up selecting symbols with unmet dependencies). > All in all, I prefer the 'depends' approach. > Why do you prefer this approach? I can tell you why I prefer a mixed approach: We have two tools, depends and select. It seems to me that depends should be used for things we can not choose to be there or not, but things that just are there, like hardware dependencies. For example MMU, CPU type, CRYPTO hardware... Select on the other hand is useful to choose things that we need like libraries, VFIO, VIRTIO, crypto libraries etc. Using this policy is clear and makes easy to choose functionalities and get the utilities automatically. On the other hand, only using depends makes things to hide the functionalities behind the utilities. -- Pierre Morel Linux/KVM/QEMU in Böblingen - Germany