From patchwork Tue Sep 12 10:03:06 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 112272 Delivered-To: patch@linaro.org Received: by 10.80.202.13 with SMTP id d13csp5674365edi; Tue, 12 Sep 2017 03:05:40 -0700 (PDT) X-Google-Smtp-Source: AOwi7QAilXbC1GjCRzSTMoAU2dOyHCTmKr5yeabedFhHtyp7c+aoKP45svlN6d/WWvnzJGTWiR3s X-Received: by 10.107.148.209 with SMTP id w200mr19180745iod.83.1505210740741; Tue, 12 Sep 2017 03:05:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1505210740; cv=none; d=google.com; s=arc-20160816; b=d1vcVXq5Cx2VVrshajUPTiRilgipU7fI+jjkNOY8MVZkXlxsU5JKrDPLn/JRuh8KGi 90tjqKNn/0CYxkp7NSsb0zwOXlDH/qkI2i21Tza4eD7QsHWZXlIRvbk+2tEhEmogKKka +QoInJBnTcDFbhLHT1hD4yJzLS4OIHxz7INBlUK1Ypsilonfo/RBDTaJnd69DYrT8FoF 8EGK11XVUEivzyJlOJAc6ksv7BBbs0VsAgkg98LeJbYcH2FtDd6jwoxkSEUzWzQJmdX4 8X9i174fgQJ+Uzrl/K0YyScEV/BuSudi8LTt8K6EFqaWDWT00OQ8icEQHG77XRYlnHuP k2UQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:cc:message-id:date:to:from :arc-authentication-results; bh=JMbFCLjiKeCXf+BXgi7uJhP9t1B+hRIAxtfEAEESM5A=; b=pM2KuvxNazUd67E0fW41w5A/UilyO2T27omDNU5Hhl6QlEK6LtdCvicaOcEQkNidCv mDNBEu4QSDNhbsQHbD4FZ46TJ47t4vsklxVvVzOsxkTapIbxmQiRh/ZjVOwoHMLX8+Js NJkK4af7veXkNxEHhVW8GrOHgHr28jCB6m5YYgfvszxi7f32dP+Nn7QFBIvTEjCKWiYm 1rS55yCkimexIoygYtu01n7ITJkeATrE0OnI6i3vVBswz3OP43xxn9iZ93BEjsqziOMA smFh8BgwQuZ2Cj/9h7dZT+TFoFKI/Fv/yh5cpq3KcS77MxqaarW9vnwrkG+x0Euu/Onp dXTw== ARC-Authentication-Results: i=1; mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id z5si821983itd.44.2017.09.12.03.05.40 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 12 Sep 2017 03:05:40 -0700 (PDT) Received-SPF: neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=neutral (google.com: 192.237.175.120 is neither permitted nor denied by best guess record for domain of xen-devel-bounces@lists.xen.org) smtp.mailfrom=xen-devel-bounces@lists.xen.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri2f-0002nC-GX; Tue, 12 Sep 2017 10:03:41 +0000 Received: from mail6.bemta6.messagelabs.com ([193.109.254.103]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dri2e-0002mz-D5 for xen-devel@lists.xen.org; Tue, 12 Sep 2017 10:03:40 +0000 Received: from [193.109.254.147] by server-3.bemta-6.messagelabs.com id 1F/AD-03093-BF0B7B95; Tue, 12 Sep 2017 10:03:39 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrDLMWRWlGSWpSXmKPExsVysyfVTffXhu2 RBkfvW1os+biYxYHR4+ju30wBjFGsmXlJ+RUJrBkvj91jLTgtVrG+qbKB8ZJgFyMXh5DAZkaJ WQ/uM0E4pxkl/uw/wdLFyMnBJqApcefzJyYQW0RAWuLa58uMIDazQKTE4Q8/2EFsYQEbib715 1hBbBYBVYl1vTPYQGxeAQuJC90dYHMkBOQldrVdZJ3AyLmAkWEVo0ZxalFZapGusYFeUlFmek ZJbmJmjq6hgZlebmpxcWJ6ak5iUrFecn7uJkagvxiAYAfj37WBhxglOZiURHmPrN8eKcSXlJ9 SmZFYnBFfVJqTWnyIUYaDQ0mC9zxITrAoNT21Ii0zBxg4MGkJDh4lEd5rIGne4oLE3OLMdIjU KUZ7jmObLv9h4ng36QqQfHTjLpDsuAkkhVjy8vNSpcR5M0DaBEDaMkrz4IbCAv0So6yUMC8j0 JlCPAWpRbmZJajyrxjFORiVhHnng0zhycwrgdv9CugsJqCzeC5tATmrJBEhJdXA6PDznFnuri Xn7wr+/M4SIXP/+6P+P/oX7JnzKtruHUmbKXBM4uLd8OUTBaz8bm1fZMaR1eF95+089w2fT5d IvuLwlby210xKoa31gvmJWKsGaxEByWvRVdM1XpkF3r9jnWC49npfedS6l29YvIWe3o9NuvVY 6PzGfQJSGc3TaxqfbrG+X/1QU4mlOCPRUIu5qDgRACDVhIlvAgAA X-Env-Sender: julien.grall@arm.com X-Msg-Ref: server-3.tower-27.messagelabs.com!1505210618!116024312!1 X-Originating-IP: [217.140.101.70] X-SpamReason: No, hits=0.0 required=7.0 tests= X-StarScan-Received: X-StarScan-Version: 9.4.45; banners=-,-,- X-VirusChecked: Checked Received: (qmail 24236 invoked from network); 12 Sep 2017 10:03:38 -0000 Received: from foss.arm.com (HELO foss.arm.com) (217.140.101.70) by server-3.tower-27.messagelabs.com with SMTP; 12 Sep 2017 10:03:38 -0000 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id B01041529; Tue, 12 Sep 2017 03:03:37 -0700 (PDT) Received: from e108454-lin.cambridge.arm.com (e108454-lin.cambridge.arm.com [10.1.206.53]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id C0B603F578; Tue, 12 Sep 2017 03:03:36 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Date: Tue, 12 Sep 2017 11:03:06 +0100 Message-Id: <20170912100330.2168-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Cc: andre.przywara@arm.com, Julien Grall , sstabellini@kernel.org Subject: [Xen-devel] [PATCH v2 00/24] xen/arm: Memory subsystem clean-up X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" Hi all, This patch series contains clean-up for the ARM memory subsystem in preparation of reworking the page tables handling. A branch with the patches can be found on xenbits: https://xenbits.xen.org/git-http/people/julieng/xen-unstable.git branch mm-cleanup-v2 For all the changes see in each patch. Cheers, Julien Grall (24): xen/x86: mm: Introduce {G,M}FN <-> {G,M}ADDR helpers xen/mm: Use typesafe MFN for alloc_boot_pages return xen/mm: Use __virt_to_mfn in map_domain_page instead of virt_to_mfn xen/arm: mm: Redefine mfn_to_virt to use typesafe xen/arm: hsr_iabt: Document RES0 field xen/arm: traps: Don't define FAR_EL2 for ARM32 xen/arm: arm32: Don't define FAR_EL1 xen/arm: Add FnV field in hsr_*abt xen/arm: Introduce hsr_xabt to gather common bits between hsr_dabt and xen/arm: traps: Introduce a helper to read the hypersivor fault register xen/arm: traps: Improve logging for data/prefetch abort fault xen/arm: Replace ioremap_attr(PAGE_HYPERVISOR_NOCACHE) call by ioremap_nocache xen/arm: page: Remove unused attributes DEV_NONSHARED and DEV_CACHED xen/arm: page: Use directly BUFFERABLE and drop DEV_WC xen/arm: page: Prefix memory types with MT_ xen/arm: page: Use ARMv8 naming to improve readability xen/arm: page: Clean-up the definition of MAIRVAL xen/arm: mm: Rename and clarify AP[1] in the stage-1 page table xen/arm: Switch to SYS_STATE_boot just after end_boot_allocator() xen/arm: mm: Rename 'ai' into 'flags' in create_xen_entries xen/arm: page: Describe the layout of flags used to update page tables xen/arm: mm: Embed permission in the flags xen/arm: mm: Handle permission flags when adding a new mapping xen/arm: mm: Use memory flags for modify_xen_mappings rather than custom one xen/arch/arm/kernel.c | 2 +- xen/arch/arm/livepatch.c | 6 +-- xen/arch/arm/mm.c | 74 +++++++++++++++-------------- xen/arch/arm/platforms/exynos5.c | 2 +- xen/arch/arm/platforms/omap5.c | 6 +-- xen/arch/arm/platforms/vexpress.c | 2 +- xen/arch/arm/setup.c | 12 +++-- xen/arch/arm/traps.c | 52 +++++++++++++++++--- xen/arch/x86/mm.c | 7 +-- xen/arch/x86/numa.c | 2 +- xen/arch/x86/srat.c | 5 +- xen/common/page_alloc.c | 7 ++- xen/drivers/acpi/osl.c | 2 +- xen/drivers/video/arm_hdlcd.c | 2 +- xen/include/asm-arm/cpregs.h | 2 - xen/include/asm-arm/lpae.h | 2 +- xen/include/asm-arm/mm.h | 3 +- xen/include/asm-arm/page.h | 99 ++++++++++++++++++++++----------------- xen/include/asm-arm/processor.h | 25 ++++++++-- xen/include/asm-x86/page.h | 4 ++ xen/include/xen/domain_page.h | 2 +- xen/include/xen/mm.h | 3 +- 22 files changed, 200 insertions(+), 121 deletions(-)