Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp7145000imu; Tue, 22 Jan 2019 00:54:43 -0800 (PST) X-Google-Smtp-Source: ALg8bN4PFjsKRBqxoGqg+43PTnLxbcdbVfE2SU8GBq24qygAFZ+VgPhuwMQz409omC9A5B1myaSk X-Received: by 2002:aa7:8286:: with SMTP id s6mr32162459pfm.63.1548147283420; Tue, 22 Jan 2019 00:54:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548147283; cv=none; d=google.com; s=arc-20160816; b=Y3ovhl+/MuXvwySE/q2kwM9Kn3EKZK46tYPYRGitYFXMDg9OQ8BOSQm7sNVQYAaeqU Vv+6VHk+8MceFPRbcjjdhY3mnWtz773oVU12hmyVcxxDL9oSum5SRRzA4kj35iKlhHjY 6CsViOjR40e0m6FsWFJ5HSRfdrXWgXiZPR9u/IR0n0I/gWfODnkq8Lz9g+F3x0Z4abkH 2TheV7koNVt9ri1Ah1UMpQIhhsm2BVNkCX+RQ6ixR+JzywlTEpstjPvXLi9ExdC1r/M8 0ZuHYFxE8TenLlj1OC/EFoAKT1vlwwc1WPEohiuu64nlR+ohax7LCOGDsYQzu+4EgmzM QIFg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-disposition :content-transfer-encoding:mime-version:in-reply-to:references :subject:cc:to:from:date:message-id; bh=hD3ZAxsbUj27R2XcB34FsHbz2kllYu/qgyMo5B6l5BQ=; b=MDTh8mFW40OKB72xhBnA6HjWsweWVApNOYzUbsp+lblX1UbQygd2tB2louodL6DRWh 2MHcUdJR9WHxpiRS1FEyw4bkch+MB+e6lGMTDB0akNkgQI5EXWLXw3CoVqT11ixuZhZ+ a+CEbEXTCt7J6bLEXatER/7NJZnUs3hiYpSLiey7K1e+jnoWC7RVwwAIotXEI29+F+3F bP+IkbYoz91RP0d7S3BQWrHqloCpCNwoI12CHCYWlgWzCVjegs5LcC+F3mhBEkJUZcS+ dmR2OUe6tjx7yZvBebB4tbhhV7DCkeYzotOOACY+5//g7+1ggihA9JzIOqMh5i8DQBSD A5VA== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 69si12420363pgc.164.2019.01.22.00.54.25; Tue, 22 Jan 2019 00:54:43 -0800 (PST) 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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727336AbfAVIwh convert rfc822-to-8bit (ORCPT + 99 others); Tue, 22 Jan 2019 03:52:37 -0500 Received: from prv1-mh.provo.novell.com ([137.65.248.33]:50436 "EHLO prv1-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726953AbfAVIwh (ORCPT ); Tue, 22 Jan 2019 03:52:37 -0500 Received: from INET-PRV1-MTA by prv1-mh.provo.novell.com with Novell_GroupWise; Tue, 22 Jan 2019 01:52:36 -0700 Message-Id: <5C46D9D00200007800210007@prv1-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 18.1.0 Date: Tue, 22 Jan 2019 01:52:32 -0700 From: "Jan Beulich" To: "Juergen Gross" Cc: "Borislav Petkov" , "Stefano Stabellini" , "the arch/x86 maintainers" , , , "xen-devel" , "Boris Ostrovsky" , , , Subject: Re: [Xen-devel] [PATCH 2/2] x86/xen: dont add memory above max allowed allocation References: <20190122080628.7238-1-jgross@suse.com> <20190122080628.7238-3-jgross@suse.com> In-Reply-To: <20190122080628.7238-3-jgross@suse.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org >>> On 22.01.19 at 09:06, wrote: > Don't allow memory to be added above the allowed maximum allocation > limit set by Xen. This reads as if the hypervisor was imposing a limit here, but looking at xen_get_max_pages(), xen_foreach_remap_area(), and xen_count_remap_pages() I take it that it's a restriction enforced by the Xen subsystem in Linux. Furthermore from the cover letter I imply that the observed issue was on a Dom0, yet xen_get_max_pages()'s use of XENMEM_maximum_reservation wouldn't impose any limit there at all (without use of the hypervisor option "dom0_mem=max:..."), would it? Jan