From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Jan Beulich" Subject: Re: [V10 PATCH 0/4] pvh dom0 patches... Date: Thu, 08 May 2014 16:20:39 +0100 Message-ID: <536BBCE702000078000108D3@mail.emea.novell.com> References: <1398820008-9005-1-git-send-email-mukesh.rathor@oracle.com> <5361049B.7040409@citrix.com> <20140430111216.2bef8e60@mantra.us.oracle.com> <20140430181923.68d75467@mantra.us.oracle.com> <53637BF3.2000502@citrix.com> <20140502170114.7ec2a9e6@mantra.us.oracle.com> <53675166.30400@citrix.com> <20140505172858.4c6c3f0a@mantra.us.oracle.com> <53688B84.8090607@citrix.com> <20140506180053.7c6da000@mantra.us.oracle.com> <536A01D8020000780000FB15@mail.emea.novell.com> <536A0188.9090109@citrix.com> <536A365D020000780000FE17@mail.emea.novell.com> <536B5C24.6060102@citrix.com> <536B7C3502000078000106F3@mail.emea.novell.com> <536B9C21.6060306@citrix.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 1WiQ7l-0000VU-Tr for xen-devel@lists.xenproject.org; Thu, 08 May 2014 15:20:42 +0000 In-Reply-To: <536B9C21.6060306@citrix.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: =?UTF-8?Q?Roger=20Pau=20Monn=C3=A9?= Cc: George.Dunlap@eu.citrix.com, xen-devel@lists.xenproject.org, keir.xen@gmail.com, tim@xen.org List-Id: xen-devel@lists.xenproject.org >>> On 08.05.14 at 17:00, wrote: > On 08/05/14 12:44, Jan Beulich wrote: >>>>> On 08.05.14 at 12:27, wrote: >>> On 07/05/14 13:34, Jan Beulich wrote: >>>>>>> On 07.05.14 at 11:48, wrote: >>>>> + /* Clamp e820 memory map to match the memory assigned to Dom0 */ >>>>> + for ( i = 0, entry = d->arch.e820; i < d->arch.nr_e820; i++, entry++ ) >>>>> + { >>>>> + if ( entry->type != E820_RAM ) >>>>> + continue; >>>>> + >>>>> + if ( nr_pages == cur_pages ) >>>>> + { >>>>> + /* >>>>> + * We already have all the assigned memory, >>>>> + * mark this region as reserved. >>>>> + */ >>>>> + entry->type = E820_RESERVED; >>>> >>>> That seems undesirable, as it will prevent Linux from using that space >>>> for MMIO purposes. Plus keeping the region here is consistent with >>>> simply shrinking the range below (yielding the remainder uncovered >>>> by any E820 entry). I think you ought to zap the entry here. >>> >>> I don't think this regions can be used for MMIO, the gpfns in the guest >>> p2m are not set as p2m_mmio_direct. >> >> Not at the point you build the domain, but such a use can't and >> shouldn't be precluded ones the domain is up. > > OK, setting entry.size = 0 should work. Please just remove unused entries altogether. You never know whether some OS can't deal with zero-size ones. And keeping the number of table entries low is generally also desirable. Jan