From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752260AbbBRLTA (ORCPT ); Wed, 18 Feb 2015 06:19:00 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:36705 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752109AbbBRLS5 (ORCPT ); Wed, 18 Feb 2015 06:18:57 -0500 X-IronPort-AV: E=Sophos;i="5.09,512,1418083200"; d="scan'208";a="228073929" Message-ID: <54E4751F.4090005@citrix.com> Date: Wed, 18 Feb 2015 11:18:55 +0000 From: David Vrabel User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.4.0 MIME-Version: 1.0 To: Juergen Gross , , , , , Subject: Re: [Xen-devel] [PATCH 13/13] xen: allow more than 512 GB of RAM for 64 bit pv-domains References: <1424242326-26611-1-git-send-email-jgross@suse.com> <1424242326-26611-14-git-send-email-jgross@suse.com> In-Reply-To: <1424242326-26611-14-git-send-email-jgross@suse.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 8bit X-DLP: MIA1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 18/02/15 06:52, Juergen Gross wrote: > > +if X86_64 > +choice > + prompt "Support pv-domains larger than 512GB" > + default XEN_512GB_NONE > + help > + Support paravirtualized domains with more than 512GB of RAM. > + > + The Xen tools and crash dump analysis tools might not support > + pv-domains with more than 512 GB of RAM. This option controls the > + default setting of the kernel to use only up to 512 GB or more. > + It is always possible to change the default via specifying the > + boot parameter "xen_512gb_limit". > + > + config XEN_512GB_NONE > + bool "neither dom0 nor domUs can be larger than 512GB" > + config XEN_512GB_DOM0 > + bool "dom0 can be larger than 512GB, domUs not" > + config XEN_512GB_DOMU > + bool "domUs can be larger than 512GB, dom0 not" > + config XEN_512GB_ALL > + bool "dom0 and domUs can be larger than 512GB" > +endchoice > +endif This configuration option doesn't look useful to me. Can we get rid of it with runtime checking. e.g., If dom0, enable >512G. If domU, enable >512G if requested by command line option /or/ toolstack indicates that it supports the linear p2m. And If max_pfn < 512G, populate 3-level p2m /unless/ toolstack indicates it supports the linear p2m. People using crash analysis tools that need the 3-level p2m can clamp dom0 memory with the Xen command line option. FWIW, the tool we use doesn't need this. David