From patchwork Fri Jan 8 02:55:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Douglas Goldstein X-Patchwork-Id: 7982271 Return-Path: X-Original-To: patchwork-xen-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 1EEACBEEE5 for ; Fri, 8 Jan 2016 02:59:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 4BBC620149 for ; Fri, 8 Jan 2016 02:59:41 +0000 (UTC) Received: from lists.xen.org (lists.xenproject.org [50.57.142.19]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 6741D200FF for ; Fri, 8 Jan 2016 02:59:40 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aHNDq-0006LK-0L; Fri, 08 Jan 2016 02:56:14 +0000 Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1aHNDp-0006LF-5I for xen-devel@lists.xen.org; Fri, 08 Jan 2016 02:56:13 +0000 Received: from [85.158.139.211] by server-12.bemta-5.messagelabs.com id 82/FD-12831-C452F865; Fri, 08 Jan 2016 02:56:12 +0000 X-Env-Sender: cardoe@cardoe.com X-Msg-Ref: server-3.tower-206.messagelabs.com!1452221771!14580588!1 X-Originating-IP: [209.85.160.169] X-SpamReason: No, hits=0.5 required=7.0 tests=BODY_RANDOM_LONG X-StarScan-Received: X-StarScan-Version: 7.35.1; banners=-,-,- X-VirusChecked: Checked Received: (qmail 3752 invoked from network); 8 Jan 2016 02:56:11 -0000 Received: from mail-yk0-f169.google.com (HELO mail-yk0-f169.google.com) (209.85.160.169) by server-3.tower-206.messagelabs.com with AES128-GCM-SHA256 encrypted SMTP; 8 Jan 2016 02:56:11 -0000 Received: by mail-yk0-f169.google.com with SMTP id v14so255782430ykd.3 for ; Thu, 07 Jan 2016 18:56:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cardoe-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=xQ+LkHth/HAxvlUh5fmr/d8zW66veeuf9gEpamyArTQ=; b=Fe3e3Q0YUm+1Jnu/NvVfEXUfzoyEQKQDkC8stBrs0S2ZrIogM7k1YtI8fNFILvCZbt tVYKXX11tQjORG19wlK8D1W9C7uGp6Fmpsh15RzfBvlAdtFE0jUyjLeWi8rJjUZtQu8P krMXFXyzUIPuJHjJCM2GxSWJAPza0GV6z5Hh9fC/81UFOSUI4QdOzheV83+ZDfQELYNf UhYdZ42m8KAgHy/bGSl/RD5wny7d1UxjZCJ+dPG9FYBbQqLNrkeBeiYVpgHV/d1Affta JQPbEOVZGvX3fZfXsFsXjkkYN7DDt3/OenvxzynMmFSyz681pk4+TJ+KJsFeAG7kpCIU PpLQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=xQ+LkHth/HAxvlUh5fmr/d8zW66veeuf9gEpamyArTQ=; b=aY5ZNbKv06hF14NEKPggjzORq8v/BnDmyjMA4Q3EUCCzkwCDfg73qXkUqT/CskUbJ3 36Xst81VqhEH+tQdBInHRgyRe8QhRaMtBDs9Y/3r44zNDIxLqoq0or/sAcFJTEsliqYC pnxBffxPOoD7zbUpuFHEXsYfkDAtJ2kRi7qE9FYNTjGrJUr0N6mcC/JgSXBa++YdQY4u DQizhncD+7kmAXosp9oV7WZYKyoBkn4RSE42Anh2NtDRArPofMHw/71l9m7UIX76Z9ne zgifoDBuUCC9iUxs88dkBre/dDxZAJ3PQ7+t3sQ/TTtNoH5MoHDt5mcddwDjoWAhq8HG JpoA== X-Gm-Message-State: ALoCoQl26ZpbKA2GRiDO+Vk99MThJ+l/3ur0hvZgh2fsZuRWWg5SLlGLfABuASquUA4f1JgvGPUDjaHHNoK/BRNqBILp3L+fyA== X-Received: by 10.129.108.147 with SMTP id h141mr58556821ywc.38.1452221770789; Thu, 07 Jan 2016 18:56:10 -0800 (PST) Received: from swanson.lan (c-68-46-196-185.hsd1.al.comcast.net. [68.46.196.185]) by smtp.gmail.com with ESMTPSA id q64sm86939866ywd.19.2016.01.07.18.56.09 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 07 Jan 2016 18:56:09 -0800 (PST) From: Doug Goldstein To: xen-devel@lists.xen.org Date: Thu, 7 Jan 2016 20:55:57 -0600 Message-Id: <1452221757-14267-1-git-send-email-cardoe@cardoe.com> X-Mailer: git-send-email 2.4.10 Cc: Andrew Cooper , Keir Fraser , Jan Beulich , Doug Goldstein Subject: [Xen-devel] [PATCH] arch/x86: convert bigmem to Kconfig X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Spam-Status: No, score=-4.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Convert the bigmem build option to Kconfig. Signed-off-by: Doug Goldstein --- The test: $ grep CONFIG_BIGMEM .config # CONFIG_BIGMEM is not set $ pahole xen-syms -C page_info .... /* size: 32, cachelines: 1, members: 5 */ $ grep CONFIG_BIGMEM .config CONFIG_BIGMEM=y $ pahole xen-syms -C page_info .... /* size: 48, cachelines: 1, members: 5 */ --- xen/arch/x86/Kconfig | 12 ++++++++++++ xen/arch/x86/Rules.mk | 2 -- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/Kconfig b/xen/arch/x86/Kconfig index 7d2ed96..90b4216 100644 --- a/xen/arch/x86/Kconfig +++ b/xen/arch/x86/Kconfig @@ -25,6 +25,18 @@ config ARCH_DEFCONFIG menu "Architecture Features" +config BIGMEM + bool "big memory support" + default n + ---help--- + Allows Xen to support up to 123Tb of memory. + + This requires growing struct page_info from 32 to 48 bytes as well + as shrinking the always accessible direct mapped memory range from + 5Tb to 3.5Tb. + + If unsure, say N. + endmenu source "common/Kconfig" diff --git a/xen/arch/x86/Rules.mk b/xen/arch/x86/Rules.mk index b76a754..a108d24 100644 --- a/xen/arch/x86/Rules.mk +++ b/xen/arch/x86/Rules.mk @@ -23,7 +23,6 @@ $(call as-insn-check,CFLAGS,CC,".equ \"x\"$$(comma)1", \ '-D__OBJECT_LABEL__=$(subst $(BASEDIR)/,,$(CURDIR))/$$@') shadow-paging ?= y -bigmem ?= n CFLAGS += -mno-red-zone -mno-sse -fpic CFLAGS += -fno-asynchronous-unwind-tables @@ -33,4 +32,3 @@ CFLAGS += -DGCC_HAS_VISIBILITY_ATTRIBUTE endif CFLAGS-$(shadow-paging) += -DCONFIG_SHADOW_PAGING -CFLAGS-$(bigmem) += -DCONFIG_BIGMEM