From patchwork Tue Apr 6 11:39:10 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rahul Singh X-Patchwork-Id: 12184987 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 3F59AC433B4 for ; Tue, 6 Apr 2021 11:41:08 +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 E89806136A for ; Tue, 6 Apr 2021 11:41:07 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org E89806136A 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.105906.202536 (Exim 4.92) (envelope-from ) id 1lTk4q-0000p1-Ka; Tue, 06 Apr 2021 11:41:00 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 105906.202536; Tue, 06 Apr 2021 11:41:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lTk4q-0000ou-HK; Tue, 06 Apr 2021 11:41:00 +0000 Received: by outflank-mailman (input) for mailman id 105906; Tue, 06 Apr 2021 11:41:00 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lTk4q-0000op-2U for xen-devel@lists.xenproject.org; Tue, 06 Apr 2021 11:41:00 +0000 Received: from foss.arm.com (unknown [217.140.110.172]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTP id a8a90018-4185-4ad6-b665-11352dfccd80; Tue, 06 Apr 2021 11:40:59 +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 E9CDF1042; Tue, 6 Apr 2021 04:40:58 -0700 (PDT) Received: from e109506.cambridge.arm.com (e109506.cambridge.arm.com [10.1.199.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 2A8BA3F73D; Tue, 6 Apr 2021 04:40:58 -0700 (PDT) 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" X-Inumbo-ID: a8a90018-4185-4ad6-b665-11352dfccd80 From: Rahul Singh To: xen-devel@lists.xenproject.org Cc: bertrand.marquis@arm.com, rahul.singh@arm.com, Jan Beulich , Paul Durrant Subject: [PATCH 1/2] xen/pci: Move PCI ATS code to common directory Date: Tue, 6 Apr 2021 12:39:10 +0100 Message-Id: X-Mailer: git-send-email 2.17.1 In-Reply-To: References: In-Reply-To: References: PCI ATS code is common for all architecture, move code to common directory to be usable for other architectures. No functional change intended. Signed-off-by: Rahul Singh Acked-by: Jan Beulich --- xen/drivers/passthrough/Makefile | 1 + xen/drivers/passthrough/{x86 => }/ats.c | 2 +- xen/drivers/passthrough/x86/Makefile | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) rename xen/drivers/passthrough/{x86 => }/ats.c (99%) diff --git a/xen/drivers/passthrough/Makefile b/xen/drivers/passthrough/Makefile index cc646612c7..445690e3e5 100644 --- a/xen/drivers/passthrough/Makefile +++ b/xen/drivers/passthrough/Makefile @@ -6,3 +6,4 @@ obj-$(CONFIG_ARM) += arm/ obj-y += iommu.o obj-$(CONFIG_HAS_PCI) += pci.o obj-$(CONFIG_HAS_DEVICE_TREE) += device_tree.o +obj-$(CONFIG_HAS_PCI) += ats.o diff --git a/xen/drivers/passthrough/x86/ats.c b/xen/drivers/passthrough/ats.c similarity index 99% rename from xen/drivers/passthrough/x86/ats.c rename to xen/drivers/passthrough/ats.c index 4628ffde45..7f7b16dc49 100644 --- a/xen/drivers/passthrough/x86/ats.c +++ b/xen/drivers/passthrough/ats.c @@ -16,7 +16,7 @@ #include #include #include -#include "../ats.h" +#include "ats.h" bool_t __read_mostly ats_enabled = 0; boolean_param("ats", ats_enabled); diff --git a/xen/drivers/passthrough/x86/Makefile b/xen/drivers/passthrough/x86/Makefile index 69284a5d19..75b2885336 100644 --- a/xen/drivers/passthrough/x86/Makefile +++ b/xen/drivers/passthrough/x86/Makefile @@ -1,3 +1,2 @@ -obj-y += ats.o obj-y += iommu.o obj-$(CONFIG_HVM) += hvm.o