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

RE: [PATCH 21/22] xen/arm64: Implement a mapcache for arm64


  • To: Julien Grall <julien@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Henry Wang <Henry.Wang@xxxxxxx>
  • Date: Fri, 6 Jan 2023 14:55:05 +0000
  • Accept-language: zh-CN, 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=bB7mfEV+3gGaxVSg/wMmc8Z8VBSo/9rvzcBJqcrEW6E=; b=G+hLPZqKi6CnfJwl/Ec+diB7WYMxiAddUDdxwMF05XmJLX1OzXLW0Vk6oNFWPtlo7lipM9Mn9dlzKpe8G0gnLzdCKqibNwowi5oi7L0vZAMa/aVBFqbzvfsxo4jvjLoPvcGIJnSRaUjk/r2aCzgaJPVJ8Sgn3ecGBBpkYYc2pHAc9E9h5vvQ72JQpjiwq0lL/u5RRjue79m0K78snn5Spyq7eMoiv0P4FSTaA7Whd/KLlzYso1nAPbXKJ5oiDQ3xDGj8uNIGZScOECbS3RnKpx1p2eELpNCwLRgQxqkF3lXX9MYWl8l/bbdWcYP+RyIolJr90ijEnZrCWGse1lEYlA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=X8atF9RdBlD1kySDpW94N0I9Az1vOquWr9G77/EQVtFJfSi70MmV/Qgj2enwQihYlMQ2+PR3od9zEnHJ83kYXo4A1lf7qitm8qxcggPUlvolcn+uZYV8R9LuegOe3KEsa62jDx2PW5HuGiVi+wdqATywW4mCyWgnnm9sOWwJkgFVlh6vAmNbjJUaAV27bgS9JStqbs6iQKXKRDfJCj4PDx9y9ZGsKE7o9RWt1QgM53/gZyPwR4sFhT8kG44iujKnEB6av07dgPRkaoKUNq7pMB2yEuKW/abjsdON+zefIgnY4AeJzkeTRfP8dR1PW2XFg5fdwP0Vrx2XaHwcoUS4iw==
  • Authentication-results-original: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=arm.com;
  • Cc: Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <Bertrand.Marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Fri, 06 Jan 2023 14:55:23 +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: AQHZEUhyvmaM0DFPMU2aLMVoP+HuFa6RlnZQ
  • Thread-topic: [PATCH 21/22] xen/arm64: Implement a mapcache for arm64

Hi Julien,

> -----Original Message-----
> Subject: [PATCH 21/22] xen/arm64: Implement a mapcache for arm64
> 
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> At the moment, on arm64, map_domain_page() is implemented using
> virt_to_mfn(). Therefore it is relying on the directmap.
> 
> In a follow-up patch, we will allow the admin to remove the directmap.
> Therefore we want to implement a mapcache.
> 
> Thanksfully there is already one for arm32. So select
> ARCH_ARM_DOMAIN_PAGE
> and add the necessary boiler plate to support 64-bit:
>     - The page-table start at level 0, so we need to allocate the level
>       1 page-table
>     - map_domain_page() should check if the page is in the directmap. If
>       yes, then use virt_to_mfn() to limit the performance impact
>       when the directmap is still enabled (this will be selectable
>       on the command line).
> 
> Take the opportunity to replace first_table_offset(...) with offsets[...].
> 
> Note that, so far, arch_mfns_in_directmap() always return true on

Nit: s/return/returns/

> arm64. So the mapcache is not yet used. This will change in a
> follow-up patch.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

Reviewed-by: Henry Wang <Henry.Wang@xxxxxxx>

Kind regards,
Henry



 


Rackspace

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