From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbdK1Grb (ORCPT ); Tue, 28 Nov 2017 01:47:31 -0500 Received: from mx2.suse.de ([195.135.220.15]:57838 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751036AbdK1Gra (ORCPT ); Tue, 28 Nov 2017 01:47:30 -0500 Subject: Re: [patch 2/4] x86/kaiser: Enable PARAVIRT again To: Thomas Gleixner , LKML Cc: Dave Hansen , Andy Lutomirski , Ingo Molnar , Borislav Petkov , Brian Gerst , Denys Vlasenko , "H. Peter Anvin" , Josh Poimboeuf , Linus Torvalds , Peter Zijlstra , Rik van Riel , daniel.gruss@iaik.tugraz.at, hughd@google.com, keescook@google.com, linux-mm@kvack.org, michael.schwarz@iaik.tugraz.at, moritz.lipp@iaik.tugraz.at, richard.fellner@student.tugraz.at, Boris Ostrovsky References: <20171127203416.236563829@linutronix.de> <20171127204257.575052752@linutronix.de> From: Juergen Gross Message-ID: <3dd8ba26-aa52-9d8b-011c-24ff18ae2d56@suse.com> Date: Tue, 28 Nov 2017 07:47:25 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 MIME-Version: 1.0 In-Reply-To: <20171127204257.575052752@linutronix.de> Content-Type: text/plain; charset=iso-8859-15 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 27/11/17 21:34, Thomas Gleixner wrote: > XEN_PV paravirtualizes read/write_c3. This does not work with KAISER as the > CR3 switch from and to user space PGD would require to map the whole XEN_PV > machinery into both. It's also not clear whether the register space is > sufficient to do so. All other PV guests use the native implementations and > are compatible with KAISER. > > Add detection for XEN_PV and disable KAISER in the early boot process when > the kernel is running as a XEN_PV guest. > > Signed-off-by: Thomas Gleixner Reviewed-by: Juergen Gross Juergen