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

Re: [Xen-devel] [PATCH 03/24] xen/arm: setup: Remove bogus xenheap_mfn_end in setup_mm for arm64



On Fri, 16 Jun 2017, Julien Grall wrote:
> Hi Stefano,
> 
> On 15/06/2017 23:28, Stefano Stabellini wrote:
> > On Tue, 13 Jun 2017, Julien Grall wrote:
> > > xenheap_mfn_end is storing an MFN and not a physical address. Thankfully
> > > xenheap_mfn_end is not used in the arm64 code. So drop it.
> > 
> > That's fine, but in that case I would prefer to move the definition of
> > xenheap_mfn_end under #ifdef CONFIG_ARM_32. In fact, there is another
> > assignment of xenheap_mfn_end few lines below in the arm64 version of
> > setup_mm: don't we need to remove that too?
> 
> The other xenheap_mfn_end contains valid mfn that point to the end and I
> didn't want to #ifdef it because:
>       1) It complexify the code
>       2) All regions should be bound with start/end to simplify potential
> use.

I am only suggesting to move its definition and declaration under #ifdef
CONFIG_ARM_32 in xen/include/asm-arm/mm.h and xen/arch/arm/mm.c.

After that, all users of xenheap_mfn_end are already #ifdef
CONFIG_ARM_32, except for xen/arch/arm/setup.c:setup_mm. The setup_mm
under #ifdef CONFIG_ARM_32 will be fine. The setup_mm under
#ifdef CONFIG_ARM_64, doesn't need xenheap_mfn_end and we could just
remove it from there.

Does it make sense? Am I missing something?

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

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