From: "Jan Beulich" Subject: Re: One question about the hypercall to translate gfn to mfn. Date: Mon, 15 Dec 2014 16:01:36 +0000 Message-ID: <548F13F0020000780004FAA0@mail.emea.novell.com> References: <5486CAAF.9070807@linux.intel.com> <20141209104633.GC75319@deinos.phlegethon.org> <20141210105505.GA64596@deinos.phlegethon.org> <20141211164632.GF53811@deinos.phlegethon.org> <548AD75B020000780004F342@mail.emea.novell.com> <548EAD94020000780004F76D@mail.emea.novell.com> <548EB672020000780004F7D2@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Stefano Stabellini Cc: Kevin Tian , "keir@xen.org" , TimDeegan , "Xen-devel@lists.xen.org" , "Paul.Durrant@citrix.com" , Zhang Yu List-Id: xen-devel@lists.xenproject.org >>> On 15.12.14 at 16:22, wrote: > On Mon, 15 Dec 2014, Jan Beulich wrote: >> >>> On 15.12.14 at 10:05, wrote: >> > yes, definitely host RAM is the upper limit, and what I'm concerning here >> > is how to reserve (at boot time) or allocate (on-demand) such large PFN >> > resource, w/o collision with other PFN reservation usage (ballooning >> > should be fine since it's operating existing RAM ranges in dom0 e820 >> > table). >> >> I don't think ballooning is restricted to the regions named RAM in >> Dom0's E820 table (at least it shouldn't be, and wasn't in the >> classic Xen kernels). > > Could you please elaborate more on this? It seems counter-intuitive at best. I don't see what's counter-intuitive here. How can the hypervisor (Dom0) or tool stack (DomU) know what ballooning intentions a guest kernel may have? It's solely the guest kernel's responsibility to make sure its ballooning activities don't collide with anything else address-wise. Jan