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

Re: [RFC PATCH] xen/arm: improve handling of load/store instruction decoding


  • To: Julien Grall <julien@xxxxxxx>, Alex Bennée <alex.bennee@xxxxxxxxxx>, <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Michal Orzel <michal.orzel@xxxxxxx>
  • Date: Mon, 5 Feb 2024 13:50:31 +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 (0)
  • 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=oZI5TNxZT3y6TKxyWrg3hJtD8+hQ67fWO8ncRaQqWhY=; b=C216T5hRHzk04wH1Qo6t5sV5b1VWC6LUHuxWD2053JA9T4DAIo6PyZw8OHnbL9ohNexxavqJnVs0hu1rLkUf0+sEJ3RwZhS4pPimkwRT6iQCeQ6tWZ/1flvI3unmCvt1ZKJ/mHTEf1Lk97lSYejmasT2VsQ9E8cjYK42ripKM8inJ2fR2dcCh+qqPIWnr4JMB94b6nGJzgFWeOb4tNyB4iXhufAvDahkuEYYlWxJQI3egTF5zj0dOzNo6zcMfAa7qX/YuBhRxd8iwPBvu2xbHbUoOhlaZIsHF77QDrihjoehs3Mz81NIvqEERxIeZRO6dNYYjOcT5Q5+qgfGmJmOkA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=F/qoyHRDqIlGwgdkElfjVGEniNgEHmgVlQt2gd9k4gI1wGKefgjxdJuSYvcMNu60U+JTqhDHsrdkTmuR/9zwPU7eRLvDSjqnZNP/kqJFxPpT+RPZ8l82UYAfGLfKXaBNEqYzlps0q766azoee9m4JN0WTwzRTAMyUTODwWmHDiSKiS8ckbDwXfZhH+QVG+j3KcgTfdwVz5VieFo3IYr11PBu7J1E9SrJ9NBUWkY1vRP2N0n8ptsfIpaMUsoDbR68y1ubFqtNRY4Qg3tDy/VK1kQyAzRuQPvcSE/I31tV/bR9bBCCzwGZTOrGx8/Mf2vR0d8A8Kp+clmpzRbZPOzGOw==
  • Cc: <sstabellini@xxxxxxxxxx>, <bertrand.marquis@xxxxxxx>, Manos Pitsidianakis <manos.pitsidianakis@xxxxxxxxxx>
  • Delivery-date: Mon, 05 Feb 2024 12:51:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>


On 05/02/2024 11:42, Julien Grall wrote:
> 
> 
> Hi Alex,
> 
> On 31/01/2024 17:50, Alex Bennée wrote:
>> While debugging VirtIO on Arm we ran into a warning due to memory
>> being memcpy'd across MMIO space. While the bug was in the mappings
>> the warning was a little confusing:
>>
>>    (XEN) d47v2 Rn should not be equal to Rt except for r31
>>    (XEN) d47v2 unhandled Arm instruction 0x3d800000
>>    (XEN) d47v2 Unable to decode instruction
>>
>> The Rn == Rt warning is only applicable to single register load/stores
>> so add some verification steps before to weed out unexpected accesses.
>>
>> I updated the Arm ARM reference to the online instruction decoding
>> table which will hopefully be more stable than the Arm ARM section
>> numbers.
NIT: commit msg should be written in imperative mood.

> 
> I am not sure if the links to the Arm websites are stable. But from
> past, experience, URL tends to disappear after a while. This is why we
> went with the section + the Arm spec.
> 
> This also has the advantage that we can check any differences between
> version. So my preference is to stick the Arm ARM reference. Bertrand,
> Michal, Stefano, any opinions?
I would prefer if we refer to Arm ARM instead of links to Arm websites.

Also, looking at Arm ARM J.a C4.1.88 (Loads and Stores) the encoding is a bit
different compared to that website and includes op3 and op4 (op2 is 24:23).

~Michal



 


Rackspace

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