From: Tim Deegan Subject: Re: Is: PVH - how to solve maxmem != memory scenario? Was:Re: [PATCH] libxl: create PVH guests with max memory assigned Date: Tue, 5 Aug 2014 21:45:54 +0200 Message-ID: <20140805194554.GA49794@deinos.phlegethon.org> References: <1405594942-20760-1-git-send-email-roger.pau@citrix.com> <1407228940.2120.22.camel@kazak.uk.xensource.com> <53E0A538.608@citrix.com> <53E0BB26.6050507@citrix.com> <20140805141844.GG13057@laptop.dumpdata.com> <53E0F2B8.7040302@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1XEkgc-0006cq-Hf for xen-devel@lists.xenproject.org; Tue, 05 Aug 2014 19:46:18 +0000 Content-Disposition: inline In-Reply-To: <53E0F2B8.7040302@citrix.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: David Vrabel Cc: Ian Campbell , george.dunlap@eu.citrix.com, Ian Jackson , jbeulich@suse.com, xen-devel@lists.xenproject.org, Roger Pau =?iso-8859-1?Q?Monn=E9?= List-Id: xen-devel@lists.xenproject.org At 16:05 +0100 on 05 Aug (1407251128), David Vrabel wrote: > The first is the PV-like approach. > > The toolstack shall construct an e820 memory map including all > appropriate holes for MMIO regions. This memory map will be well > ordered, no regions shall overlap and all regions shall begin and end > on page boundaries. > > The toolstack shall issue a XENMEM_set_memory_map hypercall for this > memory map. > > The toolstack shall issue a XENMEM_set_maximum_reservation hypercall. > > Xen (or toolstack via populate_physmap? I can't remember) shall > populate the guest's p2m using the provided e820 map. Frames shall > be added starting from the first E820_RAM region, fully > populating each RAM region before moving onto the next, until the > initial number of pages is reached. This, please. The tools should tell the guest what memory it has and the guest should use that memory. There's _far_ too much messing about in PVH memory allocation as it is. Tim.