From: Keir Fraser Subject: Re: [PATCH/RFC] memory_map + set_memmap_limit hypercall/domctl Date: Mon, 27 Nov 2006 19:08:07 +0000 Message-ID: References: <20061127185655.GC6848@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20061127185655.GC6848@redhat.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Glauber de Oliveira Costa , xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 27/11/06 6:56 pm, "Glauber de Oliveira Costa" wrote: > Here's a new shot of the memory map related hypercall/domctl > > As previously requested by Keir, I'm adding a new hypercall, > (set_memmap_limit), whose purpose is to inform hypervisor about the > maximum value the physical limit of a domain can grow to. > > I consider it close to a final version, but I'd still like to receive > comments on some specific points (besides any other that you see fit, > for sure ;-) ) Basically fine. The fallbacks in XENMEM_memory_map are pointless. Any stable Xen version that implements this hypercall will be matched with a corresponding new enough tool stack that sets memmap_limit. I think we should continue to ENOSYS if memmap_limit has not in fact been specified. The addition of 8MB slack is policy that doesn't belong in Xen. Stick it in the top-level caller (XendDomainInfo). In fact it probably belongs in the ImnageHandler in image.py, as it's more easily overridden on a per-arch and per-image-type basis there. -- Keir