Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751775AbbHTJts (ORCPT ); Thu, 20 Aug 2015 05:49:48 -0400 Received: from smtp.citrix.com ([66.165.176.89]:4287 "EHLO SMTP.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751367AbbHTJtq (ORCPT ); Thu, 20 Aug 2015 05:49:46 -0400 X-IronPort-AV: E=Sophos;i="5.15,714,1432598400"; d="scan'208";a="292855375" Message-ID: <55D5A2B7.5000106@citrix.com> Date: Thu, 20 Aug 2015 10:49:43 +0100 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.8.0 MIME-Version: 1.0 To: Julien Grall , CC: , , , David Vrabel , "Boris Ostrovsky" , Subject: Re: [Xen-devel] [PATCH v3 03/20] xen: Add Xen specific page definition References: <1438966019-19322-1-git-send-email-julien.grall@citrix.com> <1438966019-19322-4-git-send-email-julien.grall@citrix.com> In-Reply-To: <1438966019-19322-4-git-send-email-julien.grall@citrix.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 887 Lines: 25 On 07/08/15 17:46, Julien Grall wrote: > The Xen hypercall interface is always using 4K page granularity on ARM > and x86 architecture. > > With the incoming support of 64K page granularity for ARM64 guest, it > won't be possible to re-use the Linux page definition in Xen drivers. > > Introduce Xen page definition helpers based on the Linux page > definition. They have exactly the same name but prefixed with > XEN_/xen_ prefix. > > Also modify xen_page_to_gfn to use new Xen page definition. [...] > +#define xen_page_to_pfn(page) \ > + (((page_to_pfn(page)) << PAGE_SHIFT) >> XEN_PAGE_SHIFT) Rename this to page_to_xen_pfn() David -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/