Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp516468ybt; Wed, 1 Jul 2020 04:04:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz0oJO4O7k3Via3YZQioRsqoQuGTPLQ5ZCqJ09lO//6a8fjzWbJ5yk/E3S5AznnKlpWGWku X-Received: by 2002:a50:8467:: with SMTP id 94mr27747020edp.249.1593601449190; Wed, 01 Jul 2020 04:04:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593601449; cv=none; d=google.com; s=arc-20160816; b=ANrx0XuK7Do+F8gp9znbNxtjuUUVkQ4tNbRPvgTdFiOIa9wyXY8yFa7hZ41jPPkuaa 8vp5zvAK2aiOpOHAXK4NvGuPDjrFBrXaGiuU4cknYWQQnMvCtoR5434c9uBzT8irnSYq WyoTjeViws3K6x8ql/+9WprjyLWPw3oq9vkXFYwvJ/yMByvCm9FJue1nzdUaWozh+Kws 2QF1qValmqacp7mcaWkw85CYDNWEt8BMmCvAhVkjakZx51JF6pambohQGgfLBHpuaVQq moeHpotRdlYSEulXvndpPUBdyRF5gbjT/tGrVqSTFqRo5Ntk89+CQpSXSjwXvWFrJIbp 8Fkg== 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 :message-id:date:subject:cc:to:from:ironport-sdr:ironport-sdr; bh=/YAH9QC4WNXX3SykvbwB04h64Ary3AFnFN1BsxjMxeg=; b=ON+1hAfFm2+IZho0lS/z8heQw3LHgCKIJFC9Di5zaBmwEtoaNzTdNfXkoq2A7x6uyJ ww3WEa/u/SPAtjmIPbCtgNSeyhKNENR7dvY8XuGDgvSwaiLe7rIIalLCebg1MwQkCV5/ WIWSzJfZs7AHgH8m4BnW9S7Sp0L0nhqUN6K+3dWTrP+NerydEnEX7++4/CTovAm1bxhI bEqTXOcLiaDu3ZCaUhKE2vPAxdahlBnbY5e092APjHJdYDGm9Hn6HmcMZl0W9PdNBPf9 m/e9cTTtmcM91PPzUq6/OBFC9L4Igh9axAJ/LGh/K5Hs3FsLD+gbo/NRZu2iwj9M4nsD I5pw== 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 k13si3679967ejq.296.2020.07.01.04.03.44; Wed, 01 Jul 2020 04:04:09 -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 S1730171AbgGALDd (ORCPT + 99 others); Wed, 1 Jul 2020 07:03:33 -0400 Received: from mga17.intel.com ([192.55.52.151]:29868 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729791AbgGALDd (ORCPT ); Wed, 1 Jul 2020 07:03:33 -0400 IronPort-SDR: 2KqFDk3XRgZZlWr61S3xgu2aN9/+ilol8Xfm45FnCb6JU/aW/uuyq08BbmzK4dw4x987i5G6rZ YLTjJLPHKwCQ== X-IronPort-AV: E=McAfee;i="6000,8403,9668"; a="126632412" X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="126632412" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2020 04:03:31 -0700 IronPort-SDR: 2roBXaX2pEJg+CrG0EZQp8eMiOVysvZQbG2RrwkA6aPyCwIKeHyrtluTkyGoM5ZMVduqaSFC4U OwssjGD6tfAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,300,1589266800"; d="scan'208";a="425557243" Received: from silpixa00400314.ir.intel.com (HELO silpixa00400314.ger.corp.intel.com) ([10.237.222.51]) by orsmga004.jf.intel.com with ESMTP; 01 Jul 2020 04:03:27 -0700 From: Giovanni Cabiddu To: alex.williamson@redhat.com, herbert@gondor.apana.org.au Cc: 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, Giovanni Cabiddu Subject: [PATCH 0/5] vfio/pci: add blocklist and disable qat Date: Wed, 1 Jul 2020 12:02:57 +0100 Message-Id: <20200701110302.75199-1-giovanni.cabiddu@intel.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patchset defines a blocklist of devices in the vfio-pci module and adds the current generation of Intel(R) QuickAssist devices to it as they are not designed to run in an untrusted environment. By default, if a device is in the blocklist, the probe of vfio-pci fails. If a user wants to use a device in the blocklist, he needs to disable the full blocklist providing the option disable_blocklist=1 at the load of vfio-pci or specifying that parameter in a config file in /etc/modprobe.d. This series also moves the device ids definitions present in the qat driver to linux/pci_ids.h since they will be shared between the vfio-pci and the qat drivers and replaces the custom ADF_SYSTEM_DEVICE macro with PCI_VDEVICE. The series is applicable to Herbert's tree but only partially applicable to Alex's tree due to a merge conflict. Giovanni Cabiddu (5): PCI: add Intel QuickAssist device IDs vfio/pci: add device blocklist vfio/pci: add qat devices to blocklist crypto: qat - replace device ids defines crypto: qat - use PCI_VDEVICE drivers/crypto/qat/qat_c3xxx/adf_drv.c | 11 ++--- drivers/crypto/qat/qat_c3xxxvf/adf_drv.c | 11 ++--- drivers/crypto/qat/qat_c62x/adf_drv.c | 11 ++--- drivers/crypto/qat/qat_c62xvf/adf_drv.c | 11 ++--- .../crypto/qat/qat_common/adf_accel_devices.h | 6 --- drivers/crypto/qat/qat_common/qat_hal.c | 7 +-- drivers/crypto/qat/qat_common/qat_uclo.c | 9 ++-- drivers/crypto/qat/qat_dh895xcc/adf_drv.c | 11 ++--- drivers/crypto/qat/qat_dh895xccvf/adf_drv.c | 11 ++--- drivers/vfio/pci/vfio_pci.c | 48 +++++++++++++++++++ include/linux/pci_ids.h | 6 +++ 11 files changed, 87 insertions(+), 55 deletions(-) -- 2.26.2