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

RE: [PATCH] arm/entry: set x0 before cache maintenance.


  • To: Jianyong Wu <Jianyong.Wu@xxxxxxx>, "minios-devel@xxxxxxxxxxxxxxxxxxxx" <minios-devel@xxxxxxxxxxxxxxxxxxxx>, "sharan.santhanam@xxxxxxxxx" <sharan.santhanam@xxxxxxxxx>, "simon.kuenzer@xxxxxxxxx" <simon.kuenzer@xxxxxxxxx>
  • From: Jianyong Wu <Jianyong.Wu@xxxxxxx>
  • Date: Wed, 6 Jan 2021 03:11:32 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; 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-SenderADCheck; bh=ULjAcIvbygeVLnfdbQfJKBxM7XMKxUE3YjibFaN4dFU=; b=mGI+GO1bpJktpEtRTwuBU2Dt7Jnku2wu08h9+0TL/wylo1f7LjQAffy0e1M1yW7D3ULRGaZHCdABljD5tu5+o3VJ5jwPzv/JeT45KKj4pMOyl8V/2z6gZbkTXj7lV4DeRbTaGURWtprfrcE9RVBFivEw+B1LrhgF8LC3QJacQbLdYjeVDStS3+ECGe+AgJ5Qm6ajNxhcujL/WiMXYV6cj4lWTL/x0t8n+HpuGAcKVFNgUtatFGghq5EcSTyH0xZur9r3VkZ2Gg5aY4p3iXFZ96gI5uP6soBALKeaYvB1n9EQ8fmc5vkJjLca7G7793pOfR54+/9dXA4xIe0yOTxxaQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=i2DiNcUooD8j4VNu3t5iHM0ZJoUSy4UgspE85FyJNxUhTfUPxnC/OqfPz6DaUJO9oGzwDfWwZuQZjh2/w+CuC59ifBKlyKfIop5RtiD5Ape/PClMknnCkta2dPrTTYKGVsTJwGjpyWE+MEpkpCXynJJK9hlQsZo8OZKPGGX6VzFlWbDkAFnyyjGJSqpzBnXLYGhzbZfZYywqpaQOsSAEnmXgMG4LicLszlnfTGPk3XGOqPIAKZdcOlI5fHk5WevamqzIhBgKFmpOoJk0BSnaIvRPxnZoDvmSssAz0UTfIWTAsZDs4Konr2lHkwnteUBL6r2CL0UNanIMv0pgebpdmA==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: Justin He <Justin.He@xxxxxxx>
  • Delivery-date: Wed, 06 Jan 2021 03:11:44 +0000
  • List-id: Mini-os development list <minios-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHW488TyOY7bShZNka1TegvFGeeLaoZ6xSQ
  • Thread-topic: [PATCH] arm/entry: set x0 before cache maintenance.

Sorry to have make mistake in this email. please neglect it.

> -----Original Message-----
> From: Jianyong Wu <jianyong.wu@xxxxxxx>
> Sent: Wednesday, January 6, 2021 9:55 AM
> To: minios-devel@xxxxxxxxxxxxxxxxxxxx; sharan.santhanam@xxxxxxxxx;
> simon.kuenzer@xxxxxxxxx
> Cc: Justin He <Justin.He@xxxxxxx>; Jianyong Wu <Jianyong.Wu@xxxxxxx>
> Subject: [PATCH] arm/entry: set x0 before cache maintenance.
>
> There is a long standing issue in entry code of arm that x0 is not set before
> using it in clean_and_invalidate_dcache_range. This error can be caught by
> kvm and result in core dump.
> Here, x0 is set to the base address of dtb before cache maintain.
>
> Jira: ENTOS-2050
> Signed-off-by: Jianyong Wu <jianyong.wu@xxxxxxx>
> Change-Id: Ia81f5c65c19a33b7a640efcd4d3117f61c59dd28
> ---
>  plat/kvm/arm/entry64.S | 6 ++++++
>  1 file changed, 6 insertions(+)
>
> diff --git a/plat/kvm/arm/entry64.S b/plat/kvm/arm/entry64.S index
> c4de334..0526ae8 100644
> --- a/plat/kvm/arm/entry64.S
> +++ b/plat/kvm/arm/entry64.S
> @@ -92,6 +92,12 @@ ENTRY(_libkvmplat_entry)
>  add x27, x26, x17
>  add x27, x27, #__STACK_SIZE
>  sub x1, x27, x25
> +
> +/*
> + * set x0 to the location stores dtb as the base address of the
> + * memory range to be cache maintained
> + */
> +ldr x0, =_dtb
>  bl clean_and_invalidate_dcache_range
>
>  /* Disable the MMU and D-Cache. */
> --
> 2.17.1

IMPORTANT NOTICE: The contents of this email and any attachments are 
confidential and may also be privileged. If you are not the intended recipient, 
please notify the sender immediately and do not disclose the contents to any 
other person, use it for any purpose, or store or copy the information in any 
medium. Thank you.



 


Rackspace

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