Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1592084

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Borislav Petkov <bp@suse.de>
Newsgroups linux.kernel
Subject Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE
Date Fri, 03 Mar 2017 17:00:01 +0100
Message-ID <tgUc1-102-3@gated-at.bofh.it> (permalink)
References <t6p9v-441-11@gated-at.bofh.it> <t6p9v-441-9@gated-at.bofh.it> <taPf4-4KR-25@gated-at.bofh.it> <teYtr-1q5-1@gated-at.bofh.it>
X-Original-To Baoquan He <bhe@redhat.com>
MIME-Version 1.0
Content-Type text/plain; charset=utf-8
Content-Disposition inline
Content-Transfer-Encoding 8bit
User-Agent NeoMutt/20170113 (1.7.2)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 27
Organization linux.* mail to news gateway
X-Original-Cc tglx@linutronix.de, hpa@zytor.com, mingo@redhat.com, linux-kernel@vger.kernel.org, x86@kernel.org, keescook@chromium.org, yinghai@kernel.org, anderson@redhat.com, luto@kernel.org, thgarnie@google.com, kuleshovmail@gmail.com
X-Original-Date Fri, 3 Mar 2017 12:43:49 +0100
X-Original-Message-ID <20170303114349.krl6s5qfjmwz3mrg@pd.tnic>
X-Original-References <1486040077-3719-1-git-send-email-bhe@redhat.com> <1486040077-3719-2-git-send-email-bhe@redhat.com> <20170214173217.3qtf6fhiklhgsmi5@pd.tnic> <20170226040908.GB14810@x1>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1592084

Show key headers only | View raw


On Sun, Feb 26, 2017 at 12:09:08PM +0800, Baoquan He wrote:
> Am I right on understanding it?

That's exactly what I mean: KERNEL_IMAGE_SIZE is 512M by default but
we're not hard-constrained to it - we're hard-constrained to a 1G limit
as this is the 1G which is covered by level2_kernel_pgt.

And in thinking about this more, I know I suggested making the
KERNEL_IMAGE_SIZE by default 1G in order to simplify things.

But you're adding another KERNEL_MAPPING_SIZE which confuses things
more. And I fail to see why we absolutely need it.

So we suggest kernel image size should be 512M but then we still will
be using a whole 1G mapping for it anyway and a whole page of PMDs at
level2_kernel_pgt.

So why even bother?

Just make it 1G and don't introduce anything new.

-- 
Regards/Gruss,
    Boris.

SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton, HRB 21284 (AG Nürnberg)
-- 

Back to linux.kernel | Previous | Next | Find similar | Unroll thread


Thread

Re: [PATCH v4 1/3] x86: Introduce a new constant KERNEL_MAPPING_SIZE Borislav Petkov <bp@suse.de> - 2017-03-03 17:00 +0100

csiph-web