From patchwork Wed Oct 14 17:53:41 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Andryuk X-Patchwork-Id: 11838105 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 7029D61C for ; Wed, 14 Oct 2020 17:54:23 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 272852222A for ; Wed, 14 Oct 2020 17:54:23 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WPYcwYQQ" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 272852222A Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.6960.18209 (Exim 4.92) (envelope-from ) id 1kSkyT-00066R-1M; Wed, 14 Oct 2020 17:54:05 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 6960.18209; Wed, 14 Oct 2020 17:54:05 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkyS-00066I-UY; Wed, 14 Oct 2020 17:54:04 +0000 Received: by outflank-mailman (input) for mailman id 6960; Wed, 14 Oct 2020 17:54:03 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkyR-00060V-Ak for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 17:54:03 +0000 Received: from mail-il1-x143.google.com (unknown [2607:f8b0:4864:20::143]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6d3bd845-3b31-4300-bfdf-2ca521d27f5f; Wed, 14 Oct 2020 17:54:00 +0000 (UTC) Received: by mail-il1-x143.google.com with SMTP id j13so241218ilc.4 for ; Wed, 14 Oct 2020 10:54:00 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id v15sm67765ile.37.2020.10.14.10.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 10:53:59 -0700 (PDT) Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kSkyR-00060V-Ak for xen-devel@lists.xenproject.org; Wed, 14 Oct 2020 17:54:03 +0000 X-Inumbo-ID: 6d3bd845-3b31-4300-bfdf-2ca521d27f5f Received: from mail-il1-x143.google.com (unknown [2607:f8b0:4864:20::143]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 6d3bd845-3b31-4300-bfdf-2ca521d27f5f; Wed, 14 Oct 2020 17:54:00 +0000 (UTC) Received: by mail-il1-x143.google.com with SMTP id j13so241218ilc.4 for ; Wed, 14 Oct 2020 10:54:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=72uE8HBho6CRDEfq5zUs9af/VZhtVN+A95L9VpNei3g=; b=WPYcwYQQ8P4JgmLO9WS1jZolr0Vv2PVTia9WT/lQ7MX5gq+HsgEva9AfGW2FlgkgbM HVJwCL5VPEiTqLxbrJJ8A2q6YMODS7ZMAb+ADTjLgyMXIG9zTJC02fhcJE4vdysPzQ+h 7wOEuIA4KEZYRd4Miv5wes3HRO3QndjWh+xU/zP7xcvds0rqh59kMY4QvTVA/uvaFEnT VhgDXyS/LFydlvr3Q2eIXePyc1P8MCdMbaxQEA4wPi7vlq72DYhfiuBpF8QOYHsd1Vnm 0IQ8wo3SZrNi2vGPELBiHRkH0cJPFOXShMcxHEkloat2A4GQ1WyvAGOOUMdhQUib/HpS 8FVw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=72uE8HBho6CRDEfq5zUs9af/VZhtVN+A95L9VpNei3g=; b=qL0giTAbnKc8vlWuOmNR/2sMRfMXqWsFFY/CPQG+v7AvX4TF2Rvd7BuZAQPeuEt2W3 y928SpxxagV40ia6FrWU5DiMIhZguUYUGhIW5dtC20oz4Tp71LrBG41cmytSDuD0y9R+ QcdjXqgi5sAZ/3xiF7tiyA3XKSrsg2dLzrPcB/9NWrtdPXjdr6DUNLuMXc5ligWG+VqV Of7Imi+a5Y49Mk/xuQhyGy1Q20D5NWVxX7wtngmLPKVoc0s4G25utniJAJ8nHcJ9Ftnf J/2cKdjs0UMFJXEMeQkuEtN8WXcu6NUrt3odohpJNY6B1vkicj00s2cIyX2P3tXrcEHw IVQg== X-Gm-Message-State: AOAM530y+QTzC7RwsjZDyhkAbCVi3HfmCJjTJkikRYMpx0qmoonuPR+U jwnbqF8tFy32L/tmqYSIyOI= X-Google-Smtp-Source: ABdhPJwj+vJExjs0I5nCxR1nMrw0GQPeUqeZDyFFqHum+1s5g1WGgg2wXN6N5rYZrkp6aUT3nWYY8w== X-Received: by 2002:a92:3650:: with SMTP id d16mr262484ilf.29.1602698040294; Wed, 14 Oct 2020 10:54:00 -0700 (PDT) Received: from pm2-ws13.praxislan02.com ([2001:470:8:67e:ba27:ebff:fee8:ce27]) by smtp.gmail.com with ESMTPSA id v15sm67765ile.37.2020.10.14.10.53.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 14 Oct 2020 10:53:59 -0700 (PDT) From: Jason Andryuk To: Boris Ostrovsky , Juergen Gross , Stefano Stabellini Cc: Jason Andryuk , Thomas Gleixner , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/2] xen: Kconfig: nest Xen guest options Date: Wed, 14 Oct 2020 13:53:41 -0400 Message-Id: <20201014175342.152712-3-jandryuk@gmail.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20201014175342.152712-1-jandryuk@gmail.com> References: <20201014175342.152712-1-jandryuk@gmail.com> MIME-Version: 1.0 Moving XEN_512GB allows it to nest under XEN_PV. That also allows XEN_PVH to nest under XEN as a sibling to XEN_PV and XEN_PVHVM giving: [*] Xen guest support [*] Xen PV guest support [*] Limit Xen pv-domain memory to 512GB [*] Xen PV Dom0 support [*] Xen PVHVM guest support [*] Xen PVH guest support Signed-off-by: Jason Andryuk Reviewed-by: Juergen Gross --- arch/x86/xen/Kconfig | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/arch/x86/xen/Kconfig b/arch/x86/xen/Kconfig index b75007eb4ec4..2b105888927c 100644 --- a/arch/x86/xen/Kconfig +++ b/arch/x86/xen/Kconfig @@ -26,6 +26,19 @@ config XEN_PV help Support running as a Xen PV guest. +config XEN_512GB + bool "Limit Xen pv-domain memory to 512GB" + depends on XEN_PV && X86_64 + default y + help + Limit paravirtualized user domains to 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_PV_SMP def_bool y depends on XEN_PV && SMP @@ -53,19 +66,6 @@ config XEN_PVHVM_GUEST help Support running as a Xen PVHVM guest. -config XEN_512GB - bool "Limit Xen pv-domain memory to 512GB" - depends on XEN_PV - default y - help - Limit paravirtualized user domains to 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_SAVE_RESTORE bool depends on XEN