From: Ian Campbell Subject: Re: [PATCH v2 3/8] tools: arm: move magic pfns out of guest RAM region Date: Fri, 25 Apr 2014 13:22:20 +0100 Message-ID: <1398428540.18537.449.camel@kazak.uk.xensource.com> References: <1398424945.18537.424.camel@kazak.uk.xensource.com> <1398424967-9306-3-git-send-email-ian.campbell@citrix.com> <535A5080.3020608@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <535A5080.3020608@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: ian.jackson@eu.citrix.com, stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Fri, 2014-04-25 at 13:09 +0100, Julien Grall wrote: > > On 25/04/14 12:22, Ian Campbell wrote: > > diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h > > index dd53c94..a94d16b 100644 > > --- a/xen/include/public/arch-arm.h > > +++ b/xen/include/public/arch-arm.h > > @@ -375,6 +375,8 @@ typedef uint64_t xen_callback_t; > > #define GUEST_GNTTAB_BASE 0xb0000000ULL > > #define GUEST_GNTTAB_SIZE 0x00020000ULL > > > > +#define GUEST_MAGIC_BASE 0xc0000000ULL > > + > > I'm wondering if we need to move NR_MAGIC_PAGES or add a comment in > arch-arm.h if someone wants to bump the number page magic page. > > Or perhaps a BUG_ON in libxc to check at compilation time the hole is > large enought to hold all special pages. I'll add GUEST_MAGIC_SIZE and a (BUILD_)BUG_ON to check against it. Ian.