From: "Jan Beulich" Subject: Re: [PATCH 14/19] hvmloader: disallow memory relocation when vNUMA is enabled Date: Mon, 24 Nov 2014 10:15:42 +0000 Message-ID: <5473135E020000780004A3BA@mail.emea.novell.com> References: <1416582421-10789-1-git-send-email-wei.liu2@citrix.com> <1416582421-10789-15-git-send-email-wei.liu2@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1416582421-10789-15-git-send-email-wei.liu2@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: Wei Liu Cc: GeorgeDunlap , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org >>> On 21.11.14 at 16:06, wrote: > Signed-off-by: Wei Liu So this is the fourth patch now without any description whatsoever. > --- a/tools/firmware/hvmloader/pci.c > +++ b/tools/firmware/hvmloader/pci.c > @@ -88,6 +88,19 @@ void pci_setup(void) > printf("Relocating guest memory for lowmem MMIO space %s\n", > allow_memory_relocate?"enabled":"disabled"); > > + /* Disallow low memory relocation when vNUMA is enabled, because > + * relocated memory ends up off node. Further more, even if we > + * dynamically expand node coverage in hvmloader, low memory and > + * high memory may reside in different physical nodes, blindly > + * relocates low memory to high memory gives us a sub-optimal > + * configuration. > + */ > + if ( hvm_info->nr_nodes != 0 && allow_memory_relocate ) > + { > + allow_memory_relocate = false; > + printf("vNUMA enabled, relocating guest memory for lowmem MMIO space disabled\n"); > + } Apart from the comment violating our coding style, as already indicated in the reply to Konrad's comment I don't think this is the right approach. If it is meant to be a temporary measure, the comment should say so (and perhaps have a TBD or similar grep- able mark in it). Jan