From: Ian Campbell Subject: Re: [PATCH v2 5/6] libxc: introduce xc_map_domain_meminfo (and xc_unmap_domain_meminfo) Date: Fri, 13 Sep 2013 13:05:03 +0100 Message-ID: <1379073903.19256.50.camel@kazak.uk.xensource.com> References: <20130910174758.7735.13358.stgit@hit-nxdomain.opendns.com> <20130910175412.7735.58070.stgit@hit-nxdomain.opendns.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130910175412.7735.58070.stgit@hit-nxdomain.opendns.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Dario Faggioli Cc: Wei Liu , Andrew Cooper , Tim Deegan , xen-devel@lists.xen.org, Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On Tue, 2013-09-10 at 19:54 +0200, Dario Faggioli wrote: > +static inline xen_pfn_t pfn_to_mfn(xen_pfn_t pfn, xen_pfn_t *p2m, int gwidth) > +{ > + return ((xen_pfn_t) ((gwidth==8)? > + (((uint64_t *)p2m)[(pfn)]): > + ((((uint32_t *)p2m)[(pfn)]) == 0xffffffffU ? > + (-1UL) : > + (((uint32_t *)p2m)[(pfn)])))); > +} > + OMG. (since it's just moved no need to fix, but I couldn't let it pass).