From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751479AbdKIPBu (ORCPT ); Thu, 9 Nov 2017 10:01:50 -0500 Received: from mx2.suse.de ([195.135.220.15]:44099 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750761AbdKIPBt (ORCPT ); Thu, 9 Nov 2017 10:01:49 -0500 Subject: Re: [PATCH 30/30] x86, kaiser, xen: Dynamically disable KAISER when running under Xen PV To: Dave Hansen , linux-kernel@vger.kernel.org Cc: linux-mm@kvack.org, moritz.lipp@iaik.tugraz.at, daniel.gruss@iaik.tugraz.at, michael.schwarz@iaik.tugraz.at, richard.fellner@student.tugraz.at, luto@kernel.org, torvalds@linux-foundation.org, keescook@google.com, hughd@google.com, x86@kernel.org References: <20171108194646.907A1942@viggo.jf.intel.com> <20171108194742.8CD79E09@viggo.jf.intel.com> From: Juergen Gross Message-ID: <7e70274c-6ad0-9f9c-0ad3-8d3306d8174a@suse.com> Date: Thu, 9 Nov 2017 16:01:42 +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: <20171108194742.8CD79E09@viggo.jf.intel.com> Content-Type: text/plain; charset=utf-8 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 08/11/17 20:47, Dave Hansen wrote: > From: Dave Hansen > > If you paravirtualize the MMU, you can not use KAISER. This boils down > to the fact that KAISER needs to do CR3 writes in places that it is not > feasible to do real hypercalls. > > If we detect that Xen PV is in use, do not do the KAISER CR3 switches. > > I don't think this too bug of a deal for Xen. I was under the > impression that the Xen guest kernel and Xen guest userspace didn't > share an address space *anyway* so Xen PV is not normally even exposed > to the kinds of things that KAISER protects against. > > This allows KAISER=y kernels to deployed in environments that also > require PARAVIRT=y. > > Signed-off-by: Dave Hansen Acked-by: Juergen Gross Juergen