From patchwork Mon Jul 16 17:26:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 142083 Delivered-To: patch@linaro.org Received: by 2002:a2e:9754:0:0:0:0:0 with SMTP id f20-v6csp2677796ljj; Mon, 16 Jul 2018 10:29:46 -0700 (PDT) X-Google-Smtp-Source: AAOMgpd1VGG1MfxhrY8ityec/OZAIAS/NgV4s8CpfKOWIoLXPu6whqRpg0oIs3qVxpTS0xKL0DQK X-Received: by 2002:a24:5e0b:: with SMTP id h11-v6mr13389989itb.80.1531762186471; Mon, 16 Jul 2018 10:29:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1531762186; cv=none; d=google.com; s=arc-20160816; b=fm0Tzikt372kKBJI9BOVgQ//ZUsYMu61jD5T2eDR9VKyLh4HITqhhgZGRbLih4UM6E yQlf6Ye7tNFkSRsc4siGlb/fwpWhs1GIaQWwuTM4hLaGEP9ztuTJhN3tmscRo6XPom9P b07Uc883mq7xSpXfPYCVqP9HoPw9E7OyKHz7LHyWeVcaMLRXsh7iTajjE8HoWmNvgrw4 g+u8+eBXSjyfufbsIs0K6ywZ1kLMyfe2zIOYKHtfvvQB+JtqmucFpE3khxcwsKdyCzI9 PtogpAzhbdtngU14s39TX3RsbafuPqJ+acWEsSzwStbSVnfw8R3sER6c+fbGdKIPSiOl ZsMQ== 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:cc :list-subscribe:list-help:list-post:list-unsubscribe:list-id :precedence:subject:message-id:date:to:from :arc-authentication-results; bh=sufK9T7XAaGHSZrClnmDIc6vNfgC5z6Gyt81HrHEiys=; b=eaQiQtBrXak50rzsIQmZ0B8WG584VSeuUl1fuOdvh7ibfh+TYoKMDTpk5vMrW1E6fK 2r/e7IqAuX3FMan/lsgIR1LT1mc2CWVTNeXGewtSEPjfI1X5oC3dWa2cmRS5+AT0ZR4x 3BqMJ7csKFFWwEPSX/RSarF1aIOZdO7TwsTJ9uv7zzxsIfUxNcvhMYyYGVRRMA78aP3B WuGBybb3nVTIBeSFoWaaolvJ8BnKLiWqc7SpdjamBprQhuLnl9t0Vt2gfBqLl7TJIqqF 387amp1mqjs7N7BU6El6GxVxb7T+8uFUEizDCA7UYf2g4nrgJDRlqSo/YHoYcZRgPpf+ OqJA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org. [192.237.175.120]) by mx.google.com with ESMTPS id i33-v6si12243883jac.111.2018.07.16.10.29.46 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 16 Jul 2018 10:29:46 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of xen-devel-bounces@lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7HO-0006Qr-Un; Mon, 16 Jul 2018 17:27:22 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1ff7HN-0006QX-7D for xen-devel@lists.xenproject.org; Mon, 16 Jul 2018 17:27:21 +0000 X-Inumbo-ID: 8371c399-891d-11e8-a6a9-d7ebe60f679a Received: from foss.arm.com (unknown [217.140.101.70]) by us1-amaz-eas1.inumbo.com (Halon) with ESMTP id 8371c399-891d-11e8-a6a9-d7ebe60f679a; Mon, 16 Jul 2018 17:27:28 +0000 (UTC) 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 CF9C27A9; Mon, 16 Jul 2018 10:27:18 -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 127353F5B1; Mon, 16 Jul 2018 10:27:17 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xenproject.org Date: Mon, 16 Jul 2018 18:26:57 +0100 Message-Id: <20180716172712.20294-1-julien.grall@arm.com> X-Mailer: git-send-email 2.11.0 Subject: [Xen-devel] [PATCH 00/15] xen/arm: Bunch of clean-up/improvement X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Julien Grall , sstabellini@kernel.org MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Hi all, This is patch series is a bunch of clean-up/improvement I collected while working on the P2M and trap subsystems. Cheers, Julien Grall (15): xen/arm: cpregs: Allow HSR_CPREG* to receive more than 1 parameter xen/arm: cpregs: Fix typo in the documentation of TTBCR xen/arm: Introduce helpers to clear/flags flags in HCR_EL2 xen/arm: p2m: Reduce the locking section in get_page_from_gva xen/arm: p2m: Limit call to mem access code use in get_page_from_gva xen/arm: Rework lpae_mapping xen/arm: Rework lpae_table xen/arm: Rename lpae_valid to lpae_is_valid xen/arm: guest_walk: Use lpae_is_mapping to simplify the code xen/arm: Introduce helpers to get/set an MFN from/to an LPAE entry xen/arm: Allow lpae_is_{table, mapping} helpers to work on invalid entry xen/arm: p2m: Rename ret to mfn in p2m_lookup xen/arm: p2m: Introduce a new variable removing_mapping in __p2m_set_entry xen/arm: guest_walk_tables: Switch the return to bool xen/arm: traps: Move the implementation of GUEST_BUG_ON in traps.h xen/arch/arm/guest_walk.c | 54 +++++++++---------- xen/arch/arm/mem_access.c | 2 +- xen/arch/arm/mm.c | 18 +++---- xen/arch/arm/p2m.c | 110 ++++++++++++++++++++++++--------------- xen/arch/arm/traps.c | 27 +--------- xen/include/asm-arm/cpregs.h | 6 +-- xen/include/asm-arm/guest_walk.h | 8 +-- xen/include/asm-arm/lpae.h | 27 +++++----- xen/include/asm-arm/processor.h | 18 +++++++ xen/include/asm-arm/traps.h | 24 +++++++++ 10 files changed, 168 insertions(+), 126 deletions(-)