From patchwork Mon Oct 26 17:17:50 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Singh X-Patchwork-Id: 11857877 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 5AF28139F for ; Mon, 26 Oct 2020 17:19:49 +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 1F3C520882 for ; Mon, 26 Oct 2020 17:19:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 1F3C520882 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.12474.32474 (Exim 4.92) (envelope-from ) id 1kX68O-0002zn-E5; Mon, 26 Oct 2020 17:18:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 12474.32474; Mon, 26 Oct 2020 17:18:16 +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 1kX68O-0002zg-Ag; Mon, 26 Oct 2020 17:18:16 +0000 Received: by outflank-mailman (input) for mailman id 12474; Mon, 26 Oct 2020 17:18:15 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kX68M-0002zb-VF for xen-devel@lists.xenproject.org; Mon, 26 Oct 2020 17:18:14 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id dfc9d755-f9ee-44c1-adf9-49016fcff8c9; Mon, 26 Oct 2020 17:18:13 +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 CF93B139F; Mon, 26 Oct 2020 10:18:12 -0700 (PDT) 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 491973F719; Mon, 26 Oct 2020 10:18:11 -0700 (PDT) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kX68M-0002zb-VF for xen-devel@lists.xenproject.org; Mon, 26 Oct 2020 17:18:14 +0000 X-Inumbo-ID: dfc9d755-f9ee-44c1-adf9-49016fcff8c9 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-rack-iad1.inumbo.com (Halon) with ESMTP id dfc9d755-f9ee-44c1-adf9-49016fcff8c9; Mon, 26 Oct 2020 17:18:13 +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 CF93B139F; Mon, 26 Oct 2020 10:18:12 -0700 (PDT) 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 491973F719; Mon, 26 Oct 2020 10:18:11 -0700 (PDT) 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 , =?utf-8?q?Roger_Pau_Monn=C3=A9?= , Paul Durrant , Kevin Tian Subject: [PATCH v1 0/4] xen/arm: Make PCI passthrough code non-x86 specific Date: Mon, 26 Oct 2020 17:17:50 +0000 Message-Id: X-Mailer: git-send-email 2.17.1 This patch series is 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_HAS_PCI_ATS flag for PCI ATS functionality. xen/pci: Move x86 specific code to x86 directory. xen/pci: solve compilation error when memory paging is not enabled. xen/arch/x86/Kconfig | 1 + xen/drivers/char/Kconfig | 7 ++ xen/drivers/char/ns16550.c | 32 ++++---- xen/drivers/passthrough/ats.h | 24 ++++++ xen/drivers/passthrough/pci.c | 79 +------------------ xen/drivers/passthrough/vtd/x86/Makefile | 2 +- xen/drivers/passthrough/x86/Makefile | 3 +- xen/drivers/passthrough/x86/iommu.c | 7 ++ xen/drivers/passthrough/x86/pci.c | 97 ++++++++++++++++++++++++ xen/drivers/pci/Kconfig | 3 + xen/include/xen/pci.h | 2 + 11 files changed, 164 insertions(+), 93 deletions(-) create mode 100644 xen/drivers/passthrough/x86/pci.c