From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753788Ab1I2OSI (ORCPT ); Thu, 29 Sep 2011 10:18:08 -0400 Received: from smtp.ctxuk.citrix.com ([62.200.22.115]:58488 "EHLO SMTP.EU.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752519Ab1I2OSG (ORCPT ); Thu, 29 Sep 2011 10:18:06 -0400 X-IronPort-AV: E=Sophos;i="4.68,461,1312156800"; d="scan'208";a="8131637" Subject: Re: [Xen-devel] [PATCH v5 2/2] xen: modify kernel mappings corresponding to granted pages From: Ian Campbell To: Konrad Rzeszutek Wilk CC: Stefano Stabellini , "jeremy@goop.org" , "xen-devel@lists.xensource.com" , "linux-kernel@vger.kernel.org" Date: Thu, 29 Sep 2011 15:18:04 +0100 In-Reply-To: <20110929135558.GA31321@phenom.oracle.com> References: <1317293876-23891-2-git-send-email-stefano.stabellini@eu.citrix.com> <20110929135558.GA31321@phenom.oracle.com> Organization: Citrix Systems, Inc. Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.0.3- Content-Transfer-Encoding: 7bit Message-ID: <1317305884.26672.190.camel@zakaz.uk.xensource.com> MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2011-09-29 at 14:55 +0100, Konrad Rzeszutek Wilk wrote: > > /* Xen machine address */ > > @@ -31,8 +32,10 @@ typedef struct xpaddr { > > #define INVALID_P2M_ENTRY (~0UL) > > #define FOREIGN_FRAME_BIT (1UL<<(BITS_PER_LONG-1)) > > #define IDENTITY_FRAME_BIT (1UL<<(BITS_PER_LONG-2)) > > +#define GRANT_FRAME_BIT (1UL<<(BITS_PER_LONG-3)) > > I am going to change that to (BITS_PER_LONG-1) as we aren't > using the P2M. (and add that comment in the file). You should also move it away from/out of the "/**** MACHINE <-> PHYSICAL CONVERSION MACROS ****/" section, otherwise it's just confusing. The associated GRANT_FRAME macro seems to be unused. But what is that bit in page->private actually used for? This patch adds it in m2p_add_override and masks it off in m2p_find_override, but doesn't otherwise appear to use it. Ian.