From: "Jan Beulich" Subject: Re: [PATCH] x86/mm: remove the linear mapping of the p2m tables Date: Thu, 13 Sep 2012 16:36:46 +0100 Message-ID: <505219AE020000780009B262@nat28.tlf.novell.com> References: <50521304020000780009B208@nat28.tlf.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: Keir Fraser , Tim Deegan Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 13.09.12 at 17:17, Keir Fraser wrote: > On 13/09/2012 16:08, "Jan Beulich" wrote: > >>>>> On 13.09.12 at 16:58, Keir Fraser wrote: >>> On 13/09/2012 15:42, "Tim Deegan" wrote: >>> >>>>> Is that also going to remain true when we won't be able to 1:1- >>>>> map all of the memory anymore once we break the current 5Tb >>>>> barrier? If not, it would probably be worthwhile keeping that >>>>> code. >>>> >>>> Ah, 5TB is a smaller limit than I thought we had. Yes, better leave it >>>> alone, so. Though TBH finding some way to use a bit more virtual >>>> address space for Xen seems like a good idea anyway, since this won't be >>>> the only place we'll want to avoid TLB flushes. >>> >>> For HVM or PVH guests, where this HAP code would be used, clearly Xen can >>> use all the virtual address space it wants. It will almost certainly make >>> sense for Xen to have a 1:1 physical mapping of all memory when running such >>> a guest, and only do mapcache type tricks when running legacy PV guests. >> >> Yes, that's the mode I indeed wanted to get to. Just that it's >> not really clear to me (without having started at least the >> work of bumping the boundary) how intrusive those changes >> are going to be. > > Well, this is true. But almost regardless of the complexity, this is how > we're going to want to do it, and it does mean we won't need the linear map. > :) Agreed. Jan