From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mukesh Rathor Subject: Re: [HYBRID]: XEN_EMULATE_PREFIX in user process Date: Fri, 29 Jun 2012 15:50:00 -0700 (PDT) Message-ID: <20120629155000.5152d544@mantra.us.oracle.com> References: <20120628180007.06bb3fd3@mantra.us.oracle.com> <20120629010903.GC4902@phenom.dumpdata.com> <20120628182602.6cc9b432@mantra.us.oracle.com> <1340957369.10942.74.camel@zakaz.uk.xensource.com> <20120629111546.50e36f52@mantra.us.oracle.com> <20120629120738.425781e5@mantra.us.oracle.com> <1341007454.5953.18.camel@dagon.hellion.org.uk> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1341007454.5953.18.camel@dagon.hellion.org.uk> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "Xen-devel@lists.xensource.com" , Konrad Rzeszutek Wilk , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 29 Jun 2012 15:04:14 -0700 (PDT) Ian Campbell wrote: > On Fri, 2012-06-29 at 20:07 +0100, Mukesh Rathor wrote: > > I don't think reducing code should come at the expense of adding > special cases for hybrid to userspace programs... > > I think you'll have to handle the invalid op, it can't be that much > code, can it? Not a whole lot of code, but other than xen-detect, just curious, what is the possibility of any user level using XEN_EMULATE_PREFIX cpuid? The kernel won't, since it's only the hybrid running in hvm container, and it's modified to use native cpuid. The user level can just run cpuid and will be trapped in vmexit handler to call pv_cpuid(). thanks, Mukesh