From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759622AbcBYIKv (ORCPT ); Thu, 25 Feb 2016 03:10:51 -0500 Received: from mail-wm0-f65.google.com ([74.125.82.65]:36311 "EHLO mail-wm0-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758715AbcBYIKt (ORCPT ); Thu, 25 Feb 2016 03:10:49 -0500 Date: Thu, 25 Feb 2016 09:10:44 +0100 From: Ingo Molnar To: Andy Lutomirski Cc: Boris Ostrovsky , Andrew Morton , Thomas Gleixner , Andrew Cooper , Linus Torvalds , Xen Devel , "H. Peter Anvin" , Rusty Russell , "Luis R. Rodriguez" , lguest@lists.ozlabs.org, "linux-kernel@vger.kernel.org" , Andy Shevchenko , David Vrabel , Borislav Petkov , Konrad Rzeszutek Wilk , X86 ML , Ingo Molnar Subject: Re: [PATCH v3 01/11] x86/boot: enumerate documentation for the x86 hardware_subarch Message-ID: <20160225081044.GA11372@gmail.com> References: <1456212255-23959-1-git-send-email-mcgrof@kernel.org> <1456212255-23959-2-git-send-email-mcgrof@kernel.org> <20160223085119.GA10182@gmail.com> <20160223103409.GF25240@wotan.suse.de> <20160223204135.GH25240@wotan.suse.de> <20160224083259.GA20579@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Andy Lutomirski wrote: > On Feb 24, 2016 12:33 AM, "Ingo Molnar" wrote: > > > > For hard coded platform quirks I'd suggest we add x86_platform.quirks flags. For > > example the F00F hack for Xen could be done via: > > > > x86_platform.quirks.idt_remap = 0; > > > > Don't we unconditionally remap the IDT? I think Kees did it for > general purpose hardening due to our complete inability to hide the > IDT address. I.e. I think we can remove the f00f condition entirely. Yeah, indeed - I only judged by the (limited) patch context and assumed the Xen problem was with IDT remapping. But what the quirk really does is only to avoid printing the f00f workaround - i.e. a cosmetic change. I think we should just drop the paravirt_enabled() check. Thanks, Ingo