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

Re: [PATCH 6/7] xen/arm: mm: Move domain_{,un}map_* helpers in a separate file


  • To: Julien Grall <julien@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 24 Jun 2022 11:43:53 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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=wwaVRJ85vdouC/gV2Ca8NE5VHgEtpXwjIR8aFaYvWvk=; b=CQw8fKB5PuM7K0tRs+8vDOFGMwNvYFgwTuwNtts4dARWkuedKRRuc0SxEXUBgUmrvVmiduqQBc0pV6C5e/fIxlqD7uOle0VZ/4W9S+G3Hlnm2wHBQBvfiZSuUnzDGWF6AqgCWxd4uv8iD1Y2jhNy24GezjldKjim8ProQi0m3loC2PcR60LfBypul1lwOQLU3NEbaSqQzVToOkk49cs+ERpfn+RCDe/beidj9zNEZlf8RVJnORC4TIYCVFrWsAV/vHrHoPSX7sFIq/dEgTOxIQxIkySwwj66E38W2omTlkfjAioHhkvRbLDD6ewVnyLsUV/bc3bizreSEhhzVzGFLg==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LRJpMQKZy4KzOYsdMOXdKsLBqjzhBdpHLWoklYDpczn74yqtgAvyux1fEPas3CdtGZpGoB4a9IQTHzqsHSKL54kPGw5WKxmCPKIsnyb27NoE3XoyvYNvEvSJNXeAVJDmnZQXAA/nMGakdIdUI3x+66SvJGaK7jO5I4OWtv8S8VG+KIJXRGIQ5RNIfQyDg66XxI911llUN1BWemex3ufDgJg5Ut7tUOzP5NGQADGyar6sOdO8xOipitd2r7tXunWDGtusGQwY7Ly7UnnDcyBpDPQ4Evtvn8sJUHuJ0BC+nXJS4GpxXcccvY+NQtPKGZmr5GGu/yJ+BtsvnGQZ1jGDDg==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Julien Grall <jgrall@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 24 Jun 2022 09:44:58 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 24.06.2022 11:11, Julien Grall wrote:
> From: Julien Grall <jgrall@xxxxxxxxxx>
> 
> The file xen/arch/mm.c has been growing quite a lot. It now contains
> various independent part of the MM subsytem.
> 
> One of them is the helpers to map/unmap a page when CONFIG_DOMAIN_PAGE
> (only used by arm32). Move them in a new file xen/arch/arm/domain_page.c.
> 
> In order to be able to use CONFIG_DOMAIN_PAGE in the Makefile, a new
> Kconfig option is introduced that is selected by x86 and arm32.
> 
> Signed-off-by: Julien Grall <jgrall@xxxxxxxxxx>

In principle
Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

But ...

> --- a/xen/arch/x86/Kconfig
> +++ b/xen/arch/x86/Kconfig
> @@ -10,6 +10,7 @@ config X86
>       select ALTERNATIVE_CALL
>       select ARCH_SUPPORTS_INT128
>       select CORE_PARKING
> +     select DOMAIN_PAGE
>       select HAS_ALTERNATIVE
>       select HAS_COMPAT
>       select HAS_CPUFREQ
> diff --git a/xen/arch/x86/include/asm/config.h 
> b/xen/arch/x86/include/asm/config.h
> index 07bcd158314b..fbc4bb3416bd 100644
> --- a/xen/arch/x86/include/asm/config.h
> +++ b/xen/arch/x86/include/asm/config.h
> @@ -22,7 +22,6 @@
>  #define CONFIG_HAVE_EFFICIENT_UNALIGNED_ACCESS 1
>  #define CONFIG_DISCONTIGMEM 1
>  #define CONFIG_NUMA_EMU 1
> -#define CONFIG_DOMAIN_PAGE 1

... while I realize it has been named this way, I wonder whether ...

> --- a/xen/common/Kconfig
> +++ b/xen/common/Kconfig
> @@ -11,6 +11,9 @@ config COMPAT
>  config CORE_PARKING
>       bool
>  
> +config DOMAIN_PAGE
> +     bool

... this isn't a good opportunity to make the name match what it is
about - MAP_DOMAIN_PAGE. See e.g. {clear,copy}_domain_page() which
aren't under this guard, and domain pages in general is a concept we
can't get away without in the first place.

Jan



 


Rackspace

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