From patchwork Tue Nov 3 15:59:11 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Singh X-Patchwork-Id: 11878231 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id B0FE592A for ; Tue, 3 Nov 2020 16:00:17 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 7930322370 for ; Tue, 3 Nov 2020 16:00:17 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 7930322370 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=arm.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.18392.43404 (Exim 4.92) (envelope-from ) id 1kZyii-00077m-JF; Tue, 03 Nov 2020 15:59:40 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 18392.43404; Tue, 03 Nov 2020 15:59:40 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZyii-00077f-Fo; Tue, 03 Nov 2020 15:59:40 +0000 Received: by outflank-mailman (input) for mailman id 18392; Tue, 03 Nov 2020 15:59:38 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZyig-00077Z-KO for xen-devel@lists.xenproject.org; Tue, 03 Nov 2020 15:59:38 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 21a9fa7f-4dfe-4447-b9c0-09a10e142c63; Tue, 03 Nov 2020 15:59:36 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8D491139F; Tue, 3 Nov 2020 07:59:36 -0800 (PST) Received: from scm-wfh-server-rahsin01.stack04.eu02.mi.arm.com (unknown [10.58.246.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3BFAE3F66E; Tue, 3 Nov 2020 07:59:35 -0800 (PST) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kZyig-00077Z-KO for xen-devel@lists.xenproject.org; Tue, 03 Nov 2020 15:59:38 +0000 X-Inumbo-ID: 21a9fa7f-4dfe-4447-b9c0-09a10e142c63 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id 21a9fa7f-4dfe-4447-b9c0-09a10e142c63; Tue, 03 Nov 2020 15:59:36 +0000 (UTC) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 8D491139F; Tue, 3 Nov 2020 07:59:36 -0800 (PST) Received: from scm-wfh-server-rahsin01.stack04.eu02.mi.arm.com (unknown [10.58.246.76]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 3BFAE3F66E; Tue, 3 Nov 2020 07:59:35 -0800 (PST) From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: Bertrand.Marquis@arm.com, Andrew Cooper , George Dunlap , Ian Jackson , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu , Paul Durrant Subject: [PATCH v2 0/4] xen/arm: Make PCI passthrough code non-x86 specific Date: Tue, 3 Nov 2020 15:59:11 +0000 Message-Id: X-Mailer: git-send-email 2.17.1 This patch series is v2 of preparatory work to make PCI passthrough code non-x86 specific. Rahul Singh (4): xen/ns16550: solve compilation error on ARM with CONFIG_HAS_PCI enabled. xen/pci: Introduce new CONFIG_PCI_ATS flag for PCI ATS functionality. xen/pci: Move x86 specific code to x86 directory. xen/pci: solve compilation error on ARM with HAS_PCI enabled. xen/drivers/char/Kconfig | 7 +++ xen/drivers/char/ns16550.c | 32 +++++----- xen/drivers/passthrough/ats.h | 26 ++++++++ xen/drivers/passthrough/pci.c | 84 +------------------------ xen/drivers/passthrough/x86/Makefile | 3 +- xen/drivers/passthrough/x86/iommu.c | 20 ++++++ xen/drivers/passthrough/x86/pci.c | 91 ++++++++++++++++++++++++++++ xen/drivers/pci/Kconfig | 9 +++ xen/include/xen/iommu.h | 2 + xen/include/xen/pci.h | 2 + 10 files changed, 177 insertions(+), 99 deletions(-) create mode 100644 xen/drivers/passthrough/x86/pci.c