From: "Jan Beulich" Subject: Re: One question about the hypercall to translate gfn to mfn. Date: Mon, 15 Dec 2014 08:44:52 +0000 Message-ID: <548EAD94020000780004F76D@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> 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: Kevin Tian Cc: "keir@xen.org" , Tim Deegan , "Paul.Durrant@citrix.com" , Zhang Yu , "Xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org >>> On 15.12.14 at 07:25, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> >>> On 12.12.14 at 08:24, wrote: >> > - how is BFN or unused address (what do you mean by address here?) >> > allocated? does it need present in guest physical memory at boot time, >> > or just finding some holes? >> >> Fitting this into holes should be fine. > > this is an interesting open to be further discussed. Here we need consider > the extreme case, i.e. a 64bit GPU page table can legitimately use up all > the system memory allocates to that VM, and considering dozens of VMs, > it means we need reserve a very large hole. Oh, it's guest RAM you want mapped, not frame buffer space. But still you're never going to have to map more than the total amount of host RAM, and (with Linux) we already assume everything can be mapped through the 1:1 mapping. I.e. the only collision would be with excessive PFN reservations for ballooning purposes. Jan