From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752879AbdLEMTc (ORCPT ); Tue, 5 Dec 2017 07:19:32 -0500 Received: from mx2.suse.de ([195.135.220.15]:55351 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752589AbdLEMTb (ORCPT ); Tue, 5 Dec 2017 07:19:31 -0500 Subject: Re: [patch 25/60] x86/paravirt: Provide a way to check for hypervisors To: Thomas Gleixner , LKML Cc: x86@kernel.org, Linus Torvalds , Andy Lutomirsky , Peter Zijlstra , Dave Hansen , Borislav Petkov , Greg KH , keescook@google.com, hughd@google.com, Brian Gerst , Josh Poimboeuf , Denys Vlasenko , Rik van Riel , Boris Ostrovsky , David Laight , Eduardo Valentin , aliguori@amazon.com, Will Deacon , daniel.gruss@iaik.tugraz.at References: <20171204140706.296109558@linutronix.de> <20171204150606.912938129@linutronix.de> From: Juergen Gross Message-ID: <945d88a5-0fc0-b4f5-e104-c18493161d29@suse.com> Date: Tue, 5 Dec 2017 13:19:29 +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: <20171204150606.912938129@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 04/12/17 15:07, Thomas Gleixner wrote: > From: Thomas Gleixner > > There is no generic way to test whether a kernel is running on a specific > hypervisor. But that's required to prevent the upcoming user address space > separation feature in certain guest modes. > > Make the hypervisor type enum unconditionally available and provide a > helper function which allows to test for a specific type. > > Signed-off-by: Thomas Gleixner Reviewed-by: Juergen Gross Juergen