From patchwork Wed Aug 14 09:43:01 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michal Orzel X-Patchwork-Id: 13763183 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 4C1B3C531DD for ; Wed, 14 Aug 2024 09:43:34 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.777023.1187209 (Exim 4.92) (envelope-from ) id 1seAXF-0003aZ-2g; Wed, 14 Aug 2024 09:43:17 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 777023.1187209; Wed, 14 Aug 2024 09:43:17 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1seAXE-0003aS-WF; Wed, 14 Aug 2024 09:43:17 +0000 Received: by outflank-mailman (input) for mailman id 777023; Wed, 14 Aug 2024 09:43:16 +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 1seAXE-0003aM-5R for xen-devel@lists.xenproject.org; Wed, 14 Aug 2024 09:43:16 +0000 Received: from NAM10-BN7-obe.outbound.protection.outlook.com (mail-bn7nam10on20609.outbound.protection.outlook.com [2a01:111:f403:2009::609]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 9f84727e-5a21-11ef-8776-851b0ebba9a2; Wed, 14 Aug 2024 11:43:13 +0200 (CEST) Received: from CH0PR03CA0102.namprd03.prod.outlook.com (2603:10b6:610:cd::17) by MN2PR12MB4487.namprd12.prod.outlook.com (2603:10b6:208:264::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7849.24; Wed, 14 Aug 2024 09:43:10 +0000 Received: from CH1PEPF0000AD7A.namprd04.prod.outlook.com (2603:10b6:610:cd:cafe::bd) by CH0PR03CA0102.outlook.office365.com (2603:10b6:610:cd::17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7828.33 via Frontend Transport; Wed, 14 Aug 2024 09:43:10 +0000 Received: from SATLEXMB03.amd.com (165.204.84.17) by CH1PEPF0000AD7A.mail.protection.outlook.com (10.167.244.59) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.20.7849.8 via Frontend Transport; Wed, 14 Aug 2024 09:43:09 +0000 Received: from SATLEXMB06.amd.com (10.181.40.147) by SATLEXMB03.amd.com (10.181.40.144) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 14 Aug 2024 04:43:09 -0500 Received: from SATLEXMB04.amd.com (10.181.40.145) by SATLEXMB06.amd.com (10.181.40.147) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.39; Wed, 14 Aug 2024 04:43:08 -0500 Received: from XIR-MICHALO-L1.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; Wed, 14 Aug 2024 04:43:07 -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: 9f84727e-5a21-11ef-8776-851b0ebba9a2 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=ZuodEWA1N1VBPHTM+lV6ixtdDXfPrcsSi6URCj+Cve8OV/5XznKbu5tBmd4ZCi2QjuB3nw8yo2HrLSdXM0Y6CvPtc1RYJlVDyEF8IXiyJ63utwgdtVUS2yBsXoNKMhd6Qu3TSut0RPVrwVHC6Kq6B1RgVdpKrM/ZoLCbmobKereo3ruylsLLc052QN/aJ6YFkwBE7BstIiS5Nm9g+0jAVlCLuhA7a6dh9DpXlM2OexzZDGZsgK9uZ4fZxQ7gIeeWDKHOhr+gAPm5KE2V0uOdOKTYqTu9F6uMi8NhdSD2G8/ZdXnbpAjDNzI8ZkhcQupTY0bArPBXfd40wT7W92x0nQ== 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=uos8zMu1BmcwVbRQ0zFt1JSjeMAYJea2OU/jPcTq+Hs=; b=QM0p3EWyZxprH9UvhEEak0Rkwm/vbseMITzBnDtS7hN+H8atdlAWUI5IcnobWWBDJVApzEzsv0HlVgOkrJtofAFWerWC/8lmkxZWiSY69iSidxnY7b24FQ/VLZX9tA+mtFrCcWr+OZFk1wtoBBoHNekXp2j/9GDPTqlpfLnVLj+Uod7M0As4wcHw09QTBbyChiY/wLq/3q9wxX2Pgu/92BuqSRCrP6RiymytQ4n27aFN/pN9MiBqlURxDD/6UsSTR3SlKiq3KwS73niAAzpi6WJ2qcUToUgYDu1apeYSGwYHsslaR+5W036x8kpjHLLnPZqp33psFlwOrtMJQGLDiA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=lists.xenproject.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=uos8zMu1BmcwVbRQ0zFt1JSjeMAYJea2OU/jPcTq+Hs=; b=giFMDy+60DzTf1F7Ixs3+DUJnxQfsmlrnd5AzayW9F+nx+FiaW3LVxSiD7tP6AlERiZaDx7Xqg16yzHP2x6Rq0yGdLbHIA/n2AKTq3nCN5p1fBNQbEB/S2khNCbY4zjb0WXNy6qAgvKZPSbDrEPjlC7JHUK0LhdyWvt1xCbFKZ4= 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=SATLEXMB03.amd.com; pr=C From: Michal Orzel To: CC: Michal Orzel , Stefano Stabellini , Julien Grall , Bertrand Marquis , Volodymyr Babchuk Subject: [PATCH 0/2] xen/arm: drop {boot_}phys_offset Date: Wed, 14 Aug 2024 11:43:01 +0200 Message-ID: <20240814094303.23611-1-michal.orzel@amd.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: CH1PEPF0000AD7A:EE_|MN2PR12MB4487:EE_ X-MS-Office365-Filtering-Correlation-Id: 151a9787-73f7-4c2e-f33d-08dcbc4581f7 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|376014|82310400026|36860700013|1800799024; X-Microsoft-Antispam-Message-Info: abFsuiYVN//kwXBVUswm/oFGcvtr5ACZ5+N7M6l7GsaKaetPtGimFTkCrzKvz9H74S5j2fHB857cGfT2jcDCX3f9OSLzBSRs0MTFqHYFYfJqZyZJ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4B75vwSNIOyzDfnhPniiChXzRVIF572/GjVoFfyXVnU0821q6XiIuKjnRu2vUbQpNcdqKGpWG825PvQnGXwWp8entfQDzwO16NcnUiAWbjMkftrfFYDnxz3AlK0y27tFIwqLIzztSyZ0RSNAq0xVXrUvpmTvLKH0xdVjz9/75twrFqRQ97dbKIYrCp9A2GPrSITN3JXG68XJ6hbRFvJacHcCUxr+pPB7p28hX6WewjiaI1yjNGtmycRVH8hvntmx3o2z1sTTYzLTuP12f/abfPfBDbaZ5ubLHXj+hb X-Forefront-Antispam-Report: CIP:165.204.84.17;CTRY:US;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:SATLEXMB03.amd.com;PTR:InfoDomainNonexistent;CAT:NONE;SFS:(13230040)(376014)(82310400026)(36860700013)(1800799024);DIR:OUT;SFP:1101; X-OriginatorOrg: amd.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 14 Aug 2024 09:43:09.8106 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 151a9787-73f7-4c2e-f33d-08dcbc4581f7 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=[SATLEXMB03.amd.com] X-MS-Exchange-CrossTenant-AuthSource: CH1PEPF0000AD7A.namprd04.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: MN2PR12MB4487 This has been on a TODO list for quite some time now. There is no real need for these variables since we can ask the MMU to do the virt->maddr translation. Michal Orzel (2): xen/arm: Drop {boot_}phys_offset usage xen/arm: head: Do not pass physical offset to start_xen xen/arch/arm/arm32/head.S | 12 +++++------- xen/arch/arm/arm64/head.S | 12 +++++------- xen/arch/arm/include/asm/mm.h | 2 +- xen/arch/arm/mmu/setup.c | 16 ++++++---------- xen/arch/arm/setup.c | 5 ++--- 5 files changed, 19 insertions(+), 28 deletions(-)