From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: [HYBRID]: XEN_EMULATE_PREFIX in user process Date: Thu, 28 Jun 2012 18:00:07 -0700 Message-ID: <20120628180007.06bb3fd3@mantra.us.oracle.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: "Xen-devel@lists.xensource.com" , "stefano.stabellini@eu.citrix.com" , Ian Campbell List-Id: xen-devel@lists.xenproject.org Hi, Booting latest upstream pv linux as dom0, I noticed dm_mapper, user level process, is running with XEN_EMULATE_PREFIX cpuid. I am wondering if the prefix is statically put there, or how its put there? For hybrid, the hvm container traps cpuid, so we don't need to prefix cpuid. Less code if I don't have to worry about trapping the invalid op. There seems places where the cpuid is run without the xen prefix in user mode. BTW, for cpuid vmexit, if kernel mode I call pv_cpuid, if user mode, I just return cpuid values, as that's what would happen without the HVM container. thanks, Mukesh