From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932192Ab3AIW5l (ORCPT ); Wed, 9 Jan 2013 17:57:41 -0500 Received: from mail.skyhub.de ([78.46.96.112]:45829 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932085Ab3AIW5j (ORCPT ); Wed, 9 Jan 2013 17:57:39 -0500 Date: Wed, 9 Jan 2013 23:57:36 +0100 From: Borislav Petkov To: Yinghai Lu Cc: Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Eric W. Biederman" , Andrew Morton , Jan Kiszka , Jason Wessel , linux-kernel@vger.kernel.org, Alexander Duyck Subject: Re: [PATCH v7u1 09/31] x86, 64bit: #PF handler set page to cover 2M only Message-ID: <20130109225736.GA16735@liondog.tnic> Mail-Followup-To: Borislav Petkov , Yinghai Lu , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , "Eric W. Biederman" , Andrew Morton , Jan Kiszka , Jason Wessel , linux-kernel@vger.kernel.org, Alexander Duyck References: <1357260531-11115-1-git-send-email-yinghai@kernel.org> <1357260531-11115-10-git-send-email-yinghai@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <1357260531-11115-10-git-send-email-yinghai@kernel.org> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jan 03, 2013 at 04:48:29PM -0800, Yinghai Lu wrote: > Now #PF hanlder could map 1G per #PF, That causes same problem that > is fixed by > x86, mm: Only direct map addresses that are marked as E820_RAM > > only add one 2M mapping instead of 1G accessing one time for dynamically > per #PF. Ok, I can more or less grasp what the code does but this sentence above is a lot of fun. Do you mean: "add only one 2M mapping per #PF instead of all 512 pmds comprising 1G" ? Thanks. -- Regards/Gruss, Boris. Sent from a fat crate under my desk. Formatting is fine. --