From patchwork Thu Aug 8 12:09:35 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ayan Kumar Halder X-Patchwork-Id: 13757323 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 45877C52D7C for ; Thu, 8 Aug 2024 12:10:09 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.773966.1184489 (Exim 4.92) (envelope-from ) id 1sc1xu-0001gx-SA; Thu, 08 Aug 2024 12:09:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 773966.1184489; Thu, 08 Aug 2024 12:09:58 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sc1xu-0001gq-OU; Thu, 08 Aug 2024 12:09:58 +0000 Received: by outflank-mailman (input) for mailman id 773966; Thu, 08 Aug 2024 12:09:57 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1sc1xt-0001Bl-3D for xen-devel@lists.xenproject.org; Thu, 08 Aug 2024 12:09:57 +0000 Received: from NAM02-DM3-obe.outbound.protection.outlook.com (mail-dm3nam02on20601.outbound.protection.outlook.com [2a01:111:f403:2405::601]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 1f0f21f8-557f-11ef-8776-851b0ebba9a2; Thu, 08 Aug 2024 14:09:55 +0200 (CEST) Received: from BL1PR13CA0282.namprd13.prod.outlook.com (2603:10b6:208:2bc::17) by PH7PR12MB7985.namprd12.prod.outlook.com (2603:10b6:510:27b::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7807.27; Thu, 8 Aug 2024 12:09:48 +0000 Received: from BL6PEPF0001AB51.namprd04.prod.outlook.com (2603:10b6:208:2bc:cafe::1) by BL1PR13CA0282.outlook.office365.com (2603:10b6:208:2bc::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.13 via Frontend Transport; Thu, 8 Aug 2024 12:09:48 +0000 Received: from SATLEXMB04.amd.com (165.204.84.17) by BL6PEPF0001AB51.mail.protection.outlook.com (10.167.242.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7849.8 via Frontend Transport; Thu, 8 Aug 2024 12:09:47 +0000 Received: from SATLEXMB05.amd.com (10.181.40.146) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 8 Aug 2024 07:09:47 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB05.amd.com (10.181.40.146) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Thu, 8 Aug 2024 07:09:47 -0500 Received: from xcbayankuma40.xilinx.com (10.180.168.240) by SATLEXMB04.amd.com (10.181.40.145) with Microsoft SMTP Server id 15.1.2507.39 via Frontend Transport; Thu, 8 Aug 2024 07:09:46 -0500 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: 1f0f21f8-557f-11ef-8776-851b0ebba9a2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=pZZRdCi4muUTZhwkG2es7OnvTAAHLJND9rynbE7D4ZYBYWQqRZ1hVUpekEkIi3tRQXaYuGEqv9SY2U7ycffzMuf/2VOiSkqn7HOlNLoKkRjuV9dnTwr4SxoDKNDUavr1fAinwp048Y4bdBuarEIm64q2seCzMVTGuqsn6KtGSiShakDNoUthUPFBNrUe1fDCw8Z75J+p1c0LN9SNIAf8ckFdv2tJGclHfk5s9wPDv/qWfht9VRfdmM2Xe+bXIw+vl54cGEjzO207Dq6JWVgREG3pdajMEMh8ZXDc18aXietdzChOsJm0WJ0i581NdTBNbNXWyWLbtov+yjx4/QBkWQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=oonAN7b47urGvxo0xGpm8NNdDhrVQquVh/ZJyCDFHG4=; b=xTzpZtqAzool9+1kC7xASqEM0PuY2R3FK/UaV3RmzZV8mk4h9l8mJe/coygDYD3qQ/uVDjJf2SnuMqS3j1KcJ2UeRdaKJmj8Dq2dWT7ek4pPj02ak+gRPsLEoe8OWbvoLxBkadmBZt+N1vnMgbE5++btRKkmUMsr9tNRTycQmqw7guzIbgae2j0coqzQXaWhxJOg6qRFvdV2I8Jfm2VzsdOpBu2i3xjpaLFhQalQ16AiREE5g3BUW60vMaPjRQZpxQPsdTvDUUUfzbgGwFjaqSdkDkd0rx0NxPIMK6jg+8sjF7xP2kl/oe8bGbNcgpT1EWCNs0NuKNS6ByAVcqneeQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=kernel.org smtp.mailfrom=amd.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=amd.com; dkim=none (message not signed); arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amd.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=oonAN7b47urGvxo0xGpm8NNdDhrVQquVh/ZJyCDFHG4=; b=SKm0f1uYVz5X373p+QXIw48wt7xY3DwXIlce8npf0goODYqJCavwa78yKo4/Z1GlZSH+mcTuFXVYTOJr4drwrnPP5yNze1bLLeMBmG1gJVXBj7iT5qF2JN8SJUNSSqOe+1AH1eI1gXMlsmfFim0CmXVu2a3x7AbJnI9vqhhpkKA= X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 165.204.84.17) smtp.mailfrom=amd.com; dkim=none (message not signed) header.d=none;dmarc=pass action=none header.from=amd.com; Received-SPF: Pass (protection.outlook.com: domain of amd.com designates 165.204.84.17 as permitted sender) receiver=protection.outlook.com; client-ip=165.204.84.17; helo=SATLEXMB04.amd.com; pr=C From: Ayan Kumar Halder To: , , , , , CC: Subject: [PATCH v2 3/4] xen: arm: Moved domain_page.c to MMU specific Date: Thu, 8 Aug 2024 13:09:35 +0100 Message-ID: <20240808120936.3299937-4-ayan.kumar.halder@amd.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20240808120936.3299937-1-ayan.kumar.halder@amd.com> References: <20240808120936.3299937-1-ayan.kumar.halder@amd.com> MIME-Version: 1.0 Received-SPF: None (SATLEXMB05.amd.com: ayan.kumar.halder@amd.com does not designate permitted sender hosts) X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: BL6PEPF0001AB51:EE_|PH7PR12MB7985:EE_ X-MS-Office365-Filtering-Correlation-Id: c6608c8f-ae3a-4c6e-06ee-08dcb7a2ff9c X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|82310400026|1800799024|376014|36860700013; X-Microsoft-Antispam-Message-Info: KXMr/2+dM8ES9zbqQ9Sg8BH2ZuZm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JG5X5k7yC4Jk2rfVmIX4xoS0Da/bPc1h/zgGG9i+IaVNqsqSddu6bxeYznpzpDCPG13mH6lbWYpeBxCSI0A3jey23J882HvODJXRoqj4mJkrIJ1vy1Gf7W0XE4iKSrfGwpwJQO7HilLDLUA33MVSHU2VGnIwq/61CCDqkAEybwt1ycaTUmWEnCZub1N0OYh6x1IafwDV0PCMu2OoCKys+5g7amqs50SbeS9sSrTMA8p1K9LjTWbA6mykFMXLI6UsdmvLNAKdI0yoL2OwCSIymv892p+NjOejSR5blKf8JnOAOhCfl0ecmYZzSXqXoe7Jhg9nJoukRVzgk7/+IjNjHso6bRZAxOqckEf/iHbecRkqrlWJxZSqBQgdHkja X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB04.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(82310400026)(1800799024)(376014)(36860700013);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 08 Aug 2024 12:09:47.9986 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: c6608c8f-ae3a-4c6e-06ee-08dcb7a2ff9c X-MS-Exchange-CrossTenant-Id: 3dd8961f-e488-4e60-8e11-a82d994e183d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=3dd8961f-e488-4e60-8e11-a82d994e183d;Ip=[165.204.84.17];Helo=[SATLEXMB04.amd.com] X-MS-Exchange-CrossTenant-AuthSource: BL6PEPF0001AB51.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: PH7PR12MB7985 domain_page.c has been moved to mmu/domain_page.c. The reason being this file implements MMU specific logic for mapping, unmapping, etc domain page. Signed-off-by: Ayan Kumar Halder --- xen/arch/arm/mmu/Makefile | 1 + xen/arch/arm/{ => mmu}/domain_page.c | 0 2 files changed, 1 insertion(+) rename xen/arch/arm/{ => mmu}/domain_page.c (100%) diff --git a/xen/arch/arm/mmu/Makefile b/xen/arch/arm/mmu/Makefile index 67475fcd80..2cb44b857d 100644 --- a/xen/arch/arm/mmu/Makefile +++ b/xen/arch/arm/mmu/Makefile @@ -2,3 +2,4 @@ obj-y += p2m.o obj-y += pt.o obj-y += setup.o obj-y += smpboot.o +obj-$(CONFIG_ARCH_MAP_DOMAIN_PAGE) += domain_page.o diff --git a/xen/arch/arm/domain_page.c b/xen/arch/arm/mmu/domain_page.c similarity index 100% rename from xen/arch/arm/domain_page.c rename to xen/arch/arm/mmu/domain_page.c