Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1659073ybh; Thu, 23 Jul 2020 14:41:14 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzwmzoVkXlD4AYRJ0PEDNWtbcg7YM3pRMzNGLS7607EBr0sij0rMQyO2GTgS8wdSxcZ4dN8 X-Received: by 2002:a17:906:1986:: with SMTP id g6mr6636356ejd.404.1595540473892; Thu, 23 Jul 2020 14:41:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595540473; cv=none; d=google.com; s=arc-20160816; b=d9zoTXuqA2jRW/eGQEMiMkQmbVj5D0bgrLZGQzvQf2zYhfrANd2PSxSiv9X0t2KB6Q ezVZwVs89OU7o/U1zYCkKeiwfnzhP297DRT5hHCUQrAxP6YqZzV/rvlff3wPbLwwGPkW Zn6c4aL4AemkIrPUv4zZmMbk7rvtc7hP2KUC8aPSaokHEOcGlSOafomuM3aLCI42gnWt 3Jp1kTLOWk//S91Z7g5aKTGquKOF/15DfC6noRdFWsNmEf8WWzftcMW053Kdz3iJcX47 14O3SvUTf6B5gPSZvaEhh7IZC2JsriKYXQgTEQvq6SlxbD6NSTcDr6Km9Ce8cbq0gte2 +Bpg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=b1eutac6U9gSrI+f1S9jVmSJypf4DNEmU/Hnarwf5Pk=; b=Rqq21t7WyRJS0lWYA1FewcNGKu+tjxodxuCmeDWfpc0wIxO5Yy15poE+mM78DrDuWQ 9DeMGsHjB5ARYn3lhZNMzZUs2YtS0J2zooVYSa/OGD8RYOexE/8hrEVEG8ze4A9oGgV7 HGYmfvqZRoncbsmvIsiwozEvltCUedLlPM/sVZlVRHgpUjm4lDWJTt8t/dEo4lun0zbr ia0dhA167FYIGsQuJaeq/9fyCjdfXM+ULoN0M/DlnLAY7HQkHQ328Z/596ArQhKe5it1 wQ+CEdWefdGcPuHXpRXVdlY/D4ydHkrLt+LW/AAYsknFLp1WdRKnHoukxdMJ2eixvuJl SRlQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f12si2712406eje.309.2020.07.23.14.40.49; Thu, 23 Jul 2020 14:41:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726863AbgGWVkl (ORCPT + 99 others); Thu, 23 Jul 2020 17:40:41 -0400 Received: from mga17.intel.com ([192.55.52.151]:49151 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726033AbgGWVkl (ORCPT ); Thu, 23 Jul 2020 17:40:41 -0400 IronPort-SDR: QYZrAG2UZimOo0rHAIV4S9E6Dcld4eTCNWZPTbMQgsIVIhFB/ax/6prlaFi5X8RvkM17ppSs2n bk8lZ4wzCxYg== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="130701915" X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="130701915" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 14:40:40 -0700 IronPort-SDR: d8OBUfzyhIUtrluHwoWBiEPYaGXZ+sJT4Sw1hBqSikxetw67LHKcbn4BFC2pFvvdSQsrr1R7G9 ZmShiXK962EQ== X-IronPort-AV: E=Sophos;i="5.75,388,1589266800"; d="scan'208";a="463007280" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314) ([10.237.222.51]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 23 Jul 2020 14:40:37 -0700 Date: Thu, 23 Jul 2020 22:40:29 +0100 From: Giovanni Cabiddu To: Alex Williamson Cc: herbert@gondor.apana.org.au, cohuck@redhat.com, nhorman@redhat.com, vdronov@redhat.com, bhelgaas@google.com, mark.a.chambers@intel.com, gordon.mcfadden@intel.com, ahsan.atta@intel.com, qat-linux@intel.com, kvm@vger.kernel.org, linux-crypto@vger.kernel.org, linux-pci@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2 2/5] vfio/pci: Add device blocklist Message-ID: <20200723214029.GA6572@silpixa00400314> References: <20200714063610.849858-1-giovanni.cabiddu@intel.com> <20200714063610.849858-3-giovanni.cabiddu@intel.com> <20200722230210.55b2d326@x1.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200722230210.55b2d326@x1.home> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jul 22, 2020 at 11:02:10PM -0600, Alex Williamson wrote: > On Tue, 14 Jul 2020 07:36:07 +0100 > Giovanni Cabiddu wrote: > > > Add blocklist of devices that by default are not probed by vfio-pci. > > Devices in this list may be susceptible to untrusted application, even > > if the IOMMU is enabled. To be accessed via vfio-pci, the user has to > > explicitly disable the blocklist. > > > > The blocklist can be disabled via the module parameter disable_blocklist. > > > > Signed-off-by: Giovanni Cabiddu > > --- > > drivers/vfio/pci/vfio_pci.c | 33 +++++++++++++++++++++++++++++++++ > > 1 file changed, 33 insertions(+) > > Hi Giovanni, > > I'm pretty satisfied with this series, except "blocklist" makes me > think of block devices, ie. storage, or block chains, or building block > types of things before I get to "block" as in a barrier. The other > alternative listed as a suggestion currently in linux-next is denylist, > which is the counter to an allowlist. I've already proposed changing > some other terminology in vfio.c to use the term "allowed", so > allow/deny would be my preference versus pass/block. Thanks Alex for your feedback. A new revision is on the way. Regards, -- Giovanni