All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julien Grall <julien@xen.org>
To: Jan Beulich <jbeulich@suse.com>
Cc: "Julien Grall" <jgrall@amazon.com>,
	"Stefano Stabellini" <sstabellini@kernel.org>,
	"Bertrand Marquis" <bertrand.marquis@arm.com>,
	"Volodymyr Babchuk" <Volodymyr_Babchuk@epam.com>,
	"Andrew Cooper" <andrew.cooper3@citrix.com>,
	"George Dunlap" <george.dunlap@citrix.com>,
	"Wei Liu" <wl@xen.org>, "Roger Pau Monné" <roger.pau@citrix.com>,
	xen-devel@lists.xenproject.org
Subject: Re: [PATCH 6/7] xen/arm: mm: Move domain_{,un}map_* helpers in a separate file
Date: Sat, 16 Jul 2022 16:00:09 +0100	[thread overview]
Message-ID: <76a622ec-bd10-04c3-250f-c55563f9a210@xen.org> (raw)
In-Reply-To: <c46469ef-6f42-621c-ef4c-3e1e5d6bb0cd@suse.com>

Hi Jan,

On 24/06/2022 10:43, Jan Beulich wrote:
> On 24.06.2022 11:11, Julien Grall wrote:
>> From: Julien Grall <jgrall@amazon.com>
>>
>> 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@amazon.com>
> 
> In principle
> Acked-by: Jan Beulich <jbeulich@suse.com>
> 
> 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.

Fair point. I decided to move this change in a prerequisite name the new 
Kconfig ARCH_MAP_DOMAIN_PAGE.

Cheers,

-- 
Julien Grall


  reply	other threads:[~2022-07-16 15:00 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-24  9:11 [PATCH 0/7] xen/arm: mm: Bunch of clean-ups Julien Grall
2022-06-24  9:11 ` [PATCH 1/7] xen/arm: Remove most of the *_VIRT_END defines Julien Grall
2022-06-27  6:23   ` Michal Orzel
2022-06-27  9:48     ` Julien Grall
2022-06-24  9:11 ` [PATCH 2/7] xen/arm32: head.S: Introduce a macro to load the physical address of a symbol Julien Grall
2022-06-27  6:31   ` Michal Orzel
2022-06-27  9:52     ` Julien Grall
2022-06-27  9:59       ` Michal Orzel
2022-06-27 10:09         ` Julien Grall
2022-06-27 13:59           ` Bertrand Marquis
2022-06-24  9:11 ` [PATCH 3/7] xen/arm: head: Add missing isb after writing to SCTLR_EL2/HSCTLR Julien Grall
2022-06-27  6:36   ` Michal Orzel
2022-06-27 14:00   ` Bertrand Marquis
2022-06-24  9:11 ` [PATCH 4/7] xen/arm: mm: Add more ASSERT() in {destroy, modify}_xen_mappings() Julien Grall
2022-06-27  6:45   ` Michal Orzel
2022-07-04 12:35   ` Bertrand Marquis
2022-07-16 14:38     ` Julien Grall
2022-07-18  8:47       ` Jan Beulich
2022-07-18 14:06         ` Julien Grall
2022-06-24  9:11 ` [PATCH 5/7] xen/arm32: mm: Consolidate the domheap mappings initialization Julien Grall
2022-06-27  7:24   ` Michal Orzel
2022-06-30 23:09     ` Julien Grall
2022-06-24  9:11 ` [PATCH 6/7] xen/arm: mm: Move domain_{,un}map_* helpers in a separate file Julien Grall
2022-06-24  9:43   ` Jan Beulich
2022-07-16 15:00     ` Julien Grall [this message]
2022-06-24  9:11 ` [PATCH 7/7] xen/arm: mm: Reduce the area that xen_second covers Julien Grall
2022-06-27  7:51   ` Michal Orzel
2022-07-17 13:06     ` Julien Grall

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=76a622ec-bd10-04c3-250f-c55563f9a210@xen.org \
    --to=julien@xen.org \
    --cc=Volodymyr_Babchuk@epam.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=bertrand.marquis@arm.com \
    --cc=george.dunlap@citrix.com \
    --cc=jbeulich@suse.com \
    --cc=jgrall@amazon.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=wl@xen.org \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.