From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754768AbcBHQ0k (ORCPT ); Mon, 8 Feb 2016 11:26:40 -0500 Received: from smtp02.citrix.com ([66.165.176.63]:63659 "EHLO SMTP02.CITRIX.COM" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752912AbcBHQ0j (ORCPT ); Mon, 8 Feb 2016 11:26:39 -0500 X-IronPort-AV: E=Sophos;i="5.22,416,1449532800"; d="scan'208";a="336791838" Subject: Re: [Xen-devel] [PATCH v2 3/3] paravirt: rename paravirt_enabled to paravirt_legacy To: Boris Ostrovsky , Borislav Petkov References: <1454733014-15237-1-git-send-email-mcgrof@kernel.org> <1454733014-15237-4-git-send-email-mcgrof@kernel.org> <20160206085930.GF25240@wotan.suse.de> <20160206220437.GA4435@pd.tnic> <56B8B6BF.6030007@oracle.com> <20160208155507.GF28980@pd.tnic> <56B8BCDB.9040701@citrix.com> <56B8BE58.6070003@oracle.com> CC: X86 ML , , Andrey Ryabinin , Lv Zheng , Jan Beulich , "H. Peter Anvin" , , , Xen Devel , "Joerg Roedel" , "Rafael J. Wysocki" , Robert Moore , Ingo Molnar , "Andrey Ryabinin" , Mauro Carvalho Chehab , "Luis R. Rodriguez" , "Rusty Russell" , Thomas Gleixner , , Juergen Gross , "linux-kernel@vger.kernel.org" , "Andy Lutomirski" , "Luis R. Rodriguez" , , Fengguang Wu From: Andrew Cooper Message-ID: <56B8C1BC.9040603@citrix.com> Date: Mon, 8 Feb 2016 16:26:36 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Icedove/38.5.0 MIME-Version: 1.0 In-Reply-To: <56B8BE58.6070003@oracle.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-DLP: MIA2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 08/02/16 16:12, Boris Ostrovsky wrote: > > > On 02/08/2016 11:05 AM, Andrew Cooper wrote: >> >> For compatibility with other virtualisation specs, Xen's cpuid leaves >> shift depending on configuration. >> >> Spec at >> http://xenbits.xen.org/gitweb/?p=xen.git;a=blob;f=xen/include/public/arch-x86/cpuid.h;h=d709340f18d089560b959835eabb7b6609542c7e;hb=HEAD#l33 >> >> >> Basically, they are either at 0x40000000, or 0x40000100 if viridian or >> vmware compatibility has been enabled. > > (Also in arch/x86/include/asm/xen/cpuid.h in Linux tree). The other complication is that, for a PV guest, you must use the forced emulation prefix for the cpuid instruction to trap into the hypervisor. This either means you must be sure you are under Xen to start with, or use an extable entry to catch the #UD fault if you are not under Xen. ~Andrew