From: Ian Jackson Subject: Re: [PATCH 1/6] xc: use XENMEM_claim_pages hypercall during guest creation. Date: Fri, 12 Apr 2013 16:16:27 +0100 Message-ID: <20840.9547.568024.463453@mariner.uk.xensource.com> References: <1365623998-13710-1-git-send-email-konrad.wilk@oracle.com> <1365623998-13710-2-git-send-email-konrad.wilk@oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1365623998-13710-2-git-send-email-konrad.wilk@oracle.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: Konrad Rzeszutek Wilk Cc: George Dunlap , Dan Magenheimer , "xen-devel@lists.xensource.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org Konrad Rzeszutek Wilk writes ("[PATCH 1/6] xc: use XENMEM_claim_pages hypercall during guest creation."): > From: Dan Magenheimer > > We add an extra parameter to the structures passed to the > PV routine (arch_setup_meminit) and HVM routine (setup_guest) > that determines whether the claim hypercall is to be done. > > The contents of the 'claim_enabled' is defined as an 'int' > in case the hypercall expands in the future with extra > flags (for example for per-NUMA allocation). For right now > the proper values are: 0 to disable it or 1 to enable > it. > > If the hypervisor does not support this function, the > xc_domain_claim_pages and xc_domain_get_outstanding_pages > will silently return 0 (and set errno to zero). > > Signed-off-by: Dan Magenheimer > [v2: Updated per Ian's recommendations] > [v3: Added support for out-of-sync hypervisor] > Signed-off-by: Konrad Rzeszutek Wilk Acked-by: Ian Jackson