From: "Jan Beulich" Subject: Re: Alternate p2m design specification Date: Thu, 11 Jun 2015 08:05:00 +0100 Message-ID: <55794F3C02000078000835B7@mail.emea.novell.com> References: <55778039.3050000@intel.com> <557806AF0200007800082E77@mail.emea.novell.com> <55786832.8040609@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Z2wXx-0004kr-6o for xen-devel@lists.xenproject.org; Thu, 11 Jun 2015 07:05:05 +0000 In-Reply-To: <55786832.8040609@intel.com> 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: Ed White Cc: ravi.sahita@intel.com, Keir Fraser , Ian Campbell , Andrew Cooper , Ian Jackson , Tim Deegan , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org >>> On 10.06.15 at 18:39, wrote: > On 06/10/2015 12:43 AM, Jan Beulich wrote: >>>>> On 10.06.15 at 02:09, wrote: >>> Design >>> ====== >> >> Reads all quite reasonable; just one minor remark: >> >>> - Core altp2m functionality >>> >>> A new altp2m type is added to the p2m types (in addition to the previous >>> hostp2m and nestedp2m types). An HVM domain can be started in hostp2m mode >>> and switched over into altp2m mode via a hypercall. Once a HVM domain is in >>> altp2m mode, a set of (currently set size is 10) altp2m objects is managed > by >>> Xen. >> >> Rather than hardcoding 10, how about making the Xen command line >> option specify the value (instead of being a simple boolean one)? > > For the use cases we're currently aware of, even 10 is generous. I'd be > wary of allowing the user to specify any number up to and including 512 > with the current implementation, because there are a number of places where > we do a linear search of the list. I was actually considering this to allow the user to reduce the value below 10. > In practice, 1 alternate p2m is not useful, so in a future version of the > code, when we have more idea of how useful people find it, we could say > 0=off, 1=on with 10 alternates, any other number=on with that many > alternates. > > Does that seem reasonable? That's certainly an option, but using only a number from the beginning would simplify the handling of the option in the hypervisor. But of course that's only a very minor aspect. Jan