[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v5 1/5] xen/arm32: head: Widen the use of the temporary mapping


  • To: Julien Grall <julien@xxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 30 Jan 2023 09:58:23 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 165.204.84.17) smtp.rcpttodomain=xen.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
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; 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=MD4Ak62XVoYyV1FkkTpqciDvLoLSM+HT5y72qDbWiio=; b=Qa6fBndA3fuGIYhmPYGyIfP5HXecTHfdPuUdjSqUPnjHvbkUEVztTZ8YvvOe2kLabFng79vVpZFkKraqRdCrtw2YEDTsT9HKGVS+GBvKAK6tgl1ydpk35lzsMoyMwTHtmzl69YZHa0Blna2Kv05XWfmVxDsCoiwKBMQpc7hscCnTHScSKU5PKUISqfly9CyKSva6ub6FniXrwzXj98cX4ZVdsp1wAsjk3vSkZRcQ0pxoSJWqamUdOIf725wrjiqjiTV+5C5LWiu4jHXhxw+P5Yc2PIo/A94L6ID48xrNYvn6H0yF//4YePD/NJwzD53e9bctGzwuGMjoAftunPSYTw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=bM0V34Uxl3bUaY9A7n20C6sISq59iXYQu6hsAsYNbOf2Mqe5gX2Z3Lle5awE+HuAsmTlJiNpBtpDms7UvqfhnNNd+jsm624bT7gYpLqn8EEHAIbdzYH8PL+nUKGTYL6F8p4vRK9kPrkEqaAjB6SevB/XcDZXxRbKVXw8qPEPBJLtQPQLAglkRL4U5ZFPXg+AAOIAgJQyVpbhekQ5DrUULB7+Tg4BigED9kC8aP+sShWIgaKVTCqvbqeORPBQFTYHjT6V25/1XCwK+1Wq4dAXOopLjxk7IBBzw2aCX9FPEXZ849rhrhPE4J0v/XOT2fQ3XAE/jJ5SCkGzZoEjLH272w==
  • Cc: <Luca.Fancellu@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Mon, 30 Jan 2023 08:59:00 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

Hi Julien,

On 27/01/2023 20:55, Julien Grall wrote:
> 
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> At the moment, the temporary mapping is only used when the virtual
> runtime region of Xen is clashing with the physical region.
> 
> In follow-up patches, we will rework how secondary CPU bring-up works
> and it will be convenient to use the fixmap area for accessing
> the root page-table (it is per-cpu).
> 
> Rework the code to use temporary mapping when the Xen physical address
> is not overlapping with the temporary mapping.
> 
> This also has the advantage to simplify the logic to identity map
> Xen.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>
> 
> ---
> 
> Even if this patch is rewriting part of the previous patch, I decided
> to keep them separated to help the review.
> 
> The "follow-up patches" are still in draft at the moment. I still haven't
> find a way to split them nicely and not require too much more work
> in the coloring side.
> 
> I have provided some medium-term goal in the cover letter.
> 
>     Changes in v5:
>         - Fix typo in a comment
>         - No need to link boot_{second, third}_id again if we need to
>           create a temporary area.
> 
>     Changes in v3:
>         - Resolve conflicts after switching from "ldr rX, <label>" to
>           "mov_w rX, <label>" in a previous patch
> 
>     Changes in v2:
>         - Patch added
> ---
>  xen/arch/arm/arm32/head.S | 85 +++++++--------------------------------
>  1 file changed, 15 insertions(+), 70 deletions(-)
> 
> diff --git a/xen/arch/arm/arm32/head.S b/xen/arch/arm/arm32/head.S
> index df51550baa8a..93b0af114b0c 100644
> --- a/xen/arch/arm/arm32/head.S
> +++ b/xen/arch/arm/arm32/head.S
...
> @@ -675,33 +641,12 @@ remove_identity_mapping:
>          /* r2:r3 := invalid page-table entry */
>          mov   r2, #0x0
>          mov   r3, #0x0
> -        /*
> -         * Find the first slot used. Remove the entry for the first
> -         * table if the slot is not XEN_FIRST_SLOT.
> -         */
Could you please add an empty line here to improve readability?

> +        /* Find the first slot used and remove it */

Reviewed-by: Michal Orzel <michal.orzel@xxxxxxx>

~Michal



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.