From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753237AbdKTV4v (ORCPT ); Mon, 20 Nov 2017 16:56:51 -0500 Received: from Galois.linutronix.de ([146.0.238.70]:60575 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752932AbdKTV4u (ORCPT ); Mon, 20 Nov 2017 16:56:50 -0500 Date: Mon, 20 Nov 2017 22:56:46 +0100 (CET) From: Thomas Gleixner To: Andy Lutomirski cc: X86 ML , Borislav Petkov , "linux-kernel@vger.kernel.org" , Brian Gerst , Dave Hansen , Linus Torvalds , Josh Poimboeuf Subject: Re: [PATCH 03/16] x86/gdt: Put per-cpu GDT remaps in ascending order In-Reply-To: Message-ID: References: User-Agent: Alpine 2.20 (DEB 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 20 Nov 2017, Andy Lutomirski wrote: > We currently have CPU 0's GDT at the top of the GDT range and > higher-numbered CPUs at lower addreses. This happens because the > fixmap is upside down (index 0 is the top of the fixmap). > > Flip it so that GDTs are in ascending order by virtual address. > This will simplify a future patch that will generalize the GDT > remap to contain multiple pages. > > Signed-off-by: Andy Lutomirski Reviewed-by: Thomas Gleixner