Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4953047ybb; Tue, 24 Mar 2020 08:17:22 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtNyguUTDov1iOXqvj0bv7P9QAyrY1xanIfkP9H1Hy93kLVHFhhE5c7HnyjXV9Rd9R11tjb X-Received: by 2002:aca:724f:: with SMTP id p76mr3898245oic.112.1585063042525; Tue, 24 Mar 2020 08:17:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585063042; cv=none; d=google.com; s=arc-20160816; b=wgOio+rHJGJcOpOOLH+JBGW+DqNrSuKFiMXYbwCb6fq97oLcyS20ucecnFSe5s/HFx sEnMkJwDXDRnLevhyROG0KcMcjv3gDWZazDxbSHmYof7idpYUhs9DywjrPjIDX8g+tqL 4ryR+gC9eV2rWP+V0UuCY7lxOzQ1MJYSjeQEOU7fG+tZLcgPR9N/nKUrqicC/DyapPfc 6Gr57lZk1D9rJYeRBfjRhSq+E1g3vN69tC/XDwKq6qtnia2/h2GghfMLliA44qhVmdHx os1/NFDJEbguVxvwZBkSnh+xrBKUxmtQSRzVCKsW7ezbWboroOE1YglLG9UmU9PC2fTK SCFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:dkim-signature; bh=+1G8CZ+kPDexfjjaZHfg+xsZHuerLbT4PpCrsOJv6eg=; b=lBp4QC/KMDe/gYXXkx0B6VUwc4TAGCJOEu4D9Htf+XIGK0FKVGV1jeH+/HINcYz3Ii lqymSpfxnxgWVDBl8mmSMAfcbV0ogXxzqN4l2tg2LHCmgfyBae4NsdYs+ASPg0cUqMiG F7PXZKurisCeF8rw9mBtaadnXN4/XOnPBAaw4D3dYgiJ9WyMd3csY3UUotYaDdzsgMgW eXLjKdANCHVY2U0wFjeORE8jLNldFEKhSZpHnmda1d86YHs5GcOdxpRk0AS7R4fKEKEr d5P6ZSItk2EyADbcIikZrYfIqtE0DlgITuZIGsr1JPhoqFTIePN6uv/V4hLqqmxZJR0m NKNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=D3mk1+tt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t19si9541119oif.250.2020.03.24.08.17.08; Tue, 24 Mar 2020 08:17:22 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=fail header.i=@citrix.com header.s=securemail header.b=D3mk1+tt; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=citrix.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727668AbgCXPQh (ORCPT + 99 others); Tue, 24 Mar 2020 11:16:37 -0400 Received: from esa5.hc3370-68.iphmx.com ([216.71.155.168]:37888 "EHLO esa5.hc3370-68.iphmx.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727168AbgCXPQg (ORCPT ); Tue, 24 Mar 2020 11:16:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1585062995; h=date:from:to:cc:subject:message-id:references: mime-version:content-transfer-encoding:in-reply-to; bh=RseeQCj2NR8Swtya70snFlU0fchG/HJCbgy6RmMHvWY=; b=D3mk1+ttRkRGz9gxKjc8OBS0BgFgsWB+bkUbNdgkhxRRAiX903nAxFoG yYIqg9WUiwCMxZhCtL5/mShfLEhm6gMvJlSshtLGW1PGAYgxiTUtK3lGY UKt3uZjy8uFPVcTSbaVWNe1fOzyJeiaYRNv70GaIxj3CpJhQtQlwHzIQd I=; Authentication-Results: esa5.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=roger.pau@citrix.com; spf=Pass smtp.mailfrom=roger.pau@citrix.com; spf=None smtp.helo=postmaster@mail.citrix.com Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of roger.pau@citrix.com) identity=pra; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa5.hc3370-68.iphmx.com: domain of roger.pau@citrix.com designates 162.221.158.21 as permitted sender) identity=mailfrom; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="roger.pau@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:162.221.158.21 ip4:162.221.156.83 ip4:168.245.78.127 ~all" Received-SPF: None (esa5.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@mail.citrix.com) identity=helo; client-ip=162.221.158.21; receiver=esa5.hc3370-68.iphmx.com; envelope-from="roger.pau@citrix.com"; x-sender="postmaster@mail.citrix.com"; x-conformance=sidf_compatible IronPort-SDR: GoWcsj6Go6zh231OquFT09PHhau9utSPaHE2uxd1+btY+8jwzhWMlGKU9W7XlNkIJUJ6JuFvxp Dngq1bmuboh97C3KVBpPpQj73soJYHVctl5f5ejvCNs1SYSX5Dw3dtGbq4AJCf5Ql8GO7DrBS4 6jK0jLV11NAokk5rql/vH0LxZrvX8x7OJXdFHw2xzsU9WZc2T02wXbCHM/Ur6teoN10wW6TrK2 /i/hnQvUMat51SyZwHUryhv8cFBMPPnIhjhBwV8DhaHr5mBHQ4JQZtdcWq8uDKTIrOJNDvtAtE aic= X-SBRS: 2.7 X-MesageID: 14880194 X-Ironport-Server: esa5.hc3370-68.iphmx.com X-Remote-IP: 162.221.158.21 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.72,300,1580792400"; d="scan'208";a="14880194" Date: Tue, 24 Mar 2020 16:16:28 +0100 From: Roger Pau =?utf-8?B?TW9ubsOp?= To: =?utf-8?B?SsO8cmdlbiBHcm/Dnw==?= CC: , Ian Jackson , Boris Ostrovsky , Stefano Stabellini , Subject: Re: [PATCH 2/2] xen: enable BALLOON_MEMORY_HOTPLUG by default Message-ID: <20200324151628.GM24458@Air-de-Roger.citrite.net> References: <20200324150015.50496-1-roger.pau@citrix.com> <20200324150015.50496-2-roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-ClientProxiedBy: AMSPEX02CAS02.citrite.net (10.69.22.113) To AMSPEX02CL02.citrite.net (10.69.22.126) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Mar 24, 2020 at 04:09:35PM +0100, Jürgen Groß wrote: > On 24.03.20 16:00, Roger Pau Monne wrote: > > Without it a PVH dom0 is mostly useless, as it would balloon down huge > > amounts of RAM in order get physical address space to map foreign > > memory and grants, ultimately leading to an out of memory situation. > > > > Such option is also needed for HVM or PVH driver domains, since they > > also require mapping grants into physical memory regions. > > > > Suggested-by: Ian Jackson > > Signed-off-by: Roger Pau Monné > > --- > > Cc: Boris Ostrovsky > > Cc: Juergen Gross > > Cc: Stefano Stabellini > > Cc: xen-devel@lists.xenproject.org > > --- > > drivers/xen/Kconfig | 1 + > > 1 file changed, 1 insertion(+) > > > > diff --git a/drivers/xen/Kconfig b/drivers/xen/Kconfig > > index 57ddd6f4b729..c344bcffd89d 100644 > > --- a/drivers/xen/Kconfig > > +++ b/drivers/xen/Kconfig > > @@ -13,6 +13,7 @@ config XEN_BALLOON > > config XEN_BALLOON_MEMORY_HOTPLUG > > bool "Memory hotplug support for Xen balloon driver" > > depends on XEN_BALLOON && MEMORY_HOTPLUG > > + default y > > help > > Memory hotplug support for Xen balloon driver allows expanding memory > > available for the system above limit declared at system startup. > > > > Another variant would be to set: default XEN_BACKEND > > This would match the reasoning for switching it on. I would rather have it always on if possible, as gntdev or privcmd (when used to map foreign pages from user-space) will also require it, and they are not gated on XEN_BACKEND AFAICT. > Either way would be fine with me, so you can add > > Reviewed-by: Juergen Gross Thanks! Roger.