From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: virtio-dev-return-7698-cohuck=redhat.com@lists.oasis-open.org Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id BFCEE985EA8 for ; Fri, 21 Aug 2020 13:16:29 +0000 (UTC) From: Jean-Philippe Brucker Date: Fri, 21 Aug 2020 15:15:40 +0200 Message-Id: <20200821131540.2801801-7-jean-philippe@linaro.org> In-Reply-To: <20200821131540.2801801-1-jean-philippe@linaro.org> References: <20200821131540.2801801-1-jean-philippe@linaro.org> MIME-Version: 1.0 Subject: [virtio-dev] [PATCH v3 6/6] iommu/virtio: Enable x86 support Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable To: iommu@lists.linux-foundation.org, virtualization@lists.linux-foundation.org, virtio-dev@lists.oasis-open.org, linux-pci@vger.kernel.org Cc: joro@8bytes.org, bhelgaas@google.com, mst@redhat.com, jasowang@redhat.com, kevin.tian@intel.com, sebastien.boeuf@intel.com, eric.auger@redhat.com, lorenzo.pieralisi@arm.com, Jean-Philippe Brucker List-ID: With the built-in topology description in place, x86 platforms can now use the virtio-iommu. Architectures that use the generic iommu_dma_ops should normally select CONFIG_IOMMU_DMA themselves (from arch/*/Kconfig). Since not all x86 drivers have been converted yet, it's currently up to the IOMMU Kconfig to select it. Signed-off-by: Jean-Philippe Brucker --- drivers/iommu/Kconfig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/iommu/Kconfig b/drivers/iommu/Kconfig index 98d28fdbc19a..d7cf158745eb 100644 --- a/drivers/iommu/Kconfig +++ b/drivers/iommu/Kconfig @@ -383,8 +383,9 @@ config HYPERV_IOMMU config VIRTIO_IOMMU =09tristate "Virtio IOMMU driver" =09depends on VIRTIO -=09depends on ARM64 +=09depends on (ARM64 || X86) =09select IOMMU_API +=09select IOMMU_DMA if X86 =09select INTERVAL_TREE =09help =09 Para-virtualised IOMMU driver with virtio. --=20 2.28.0 --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org