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

Re: [PATCH 3/7] xen/arm64: head: Add missing isb in setup_fixmap()


  • To: Julien Grall <julien@xxxxxxx>
  • From: Luca Fancellu <Luca.Fancellu@xxxxxxx>
  • Date: Tue, 20 Jun 2023 11:14:35 +0000
  • Accept-language: en-GB, 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=9RZ3N4fkwmcjTK1M/cwxWJIZ83Jv+/9dPTwWI41AjuQ=; b=nIkNrS5/nsea2155Cb8FxGweyBYg18h7uNzbI7BY+YQHEM0JAkuLGxfxOGJSchscLxQyDrDVo155ornxkZuPj87kGn22XU2YJgtUfTogLXVZ8JzvUS8UWhdoC+shYmAGVid6Xo44AvektQ0BFBtj4OJQVdzk6SOLIcY7J3QsHLEu1zEPCPi7ksKm1AkNYzAeiaPS9mI+cSm9nA1qQrI/2t8xd7JwffMP26fiSztntqq/2wDVYJYqX0VjYL4tnvqG57Z/O40dIZHvUZZAQhCHqUFOMl1tacJQahXTpre1q5hMLW8k/YDUYLO2MW9BMSe62T4Wrx9hSQx+/LR7Z8uGZQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=jmlkX1nYG9ETxCWJdt8rONFts+ui2DbPJ4FVvvIYpEhQ/JAtLNNxMRo1pFGxX5Z4qC3+M/41x3XMjqJePyPjHL61Kz6W8DWYIhNJAusDBJz350bCzLTKrXvY/HPaVveDat9yn9c2gVn1JJHYLyaPx8ZfkJietzHQlV+ijeM/rDQmKK7AOrnNTJ+fCFuxGvIr9KQjU39rTrc74s96WyiKeVWpOrUiFC/QVjU5qr8TDczvd4x+3Ysz1TZnSXn9limXozsF10unSexgH3WmSv7LyZEyjUJ3IeJbDgClD/Z4mP+KsIOC821xnVQIPN+j1MTt2iUtLZuZQROPWDHDGi159Q==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, "michal.orzel@xxxxxxx" <michal.orzel@xxxxxxx>, Henry Wang <Henry.Wang@xxxxxxx>, Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Tue, 20 Jun 2023 11:14:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHZos+3kgkgJrhp6UigH6k9WVt2Wq+Tix6A
  • Thread-topic: [PATCH 3/7] xen/arm64: head: Add missing isb in setup_fixmap()


> On 19 Jun 2023, at 18:01, Julien Grall <julien@xxxxxxx> wrote:
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> On older version of the Arm Arm (ARM DDI 0487E.a, B2-125) there were
> the following paragraph:
> 
> "DMB and DSB instructions affect reads and writes to the memory system
> generated by Load/Store instructions and data or unified cache
> maintenance instructions being executed by the PE. Instruction fetches
> or accesses caused by a hardware translation table access are not
> explicit accesses."
> 
> Newer revision (e.g. ARM DDI 0487J.a) doesn't have the second sentence
> (it might be somewhere else in the Arm Arm). But the interpretation is
> not much different.
> 
> In setup_fixmap(), we write the fixmap area and may be used soon after,
> for instance, to write to the UART. IOW, there could be hardware
> translation table access. So we need to ensure the 'dsb' has completed
> before continuing. Therefore add an 'isb'.
> 
> Fixes: 2b11c3646105 ("xen/arm64: head: Remove 1:1 mapping as soon as it is 
> not used")
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

Reviewed-by: Luca Fancellu <luca.fancellu@xxxxxxx>





 


Rackspace

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