From: Ian Campbell Subject: Re: [HYBRID]: XEN_EMULATE_PREFIX in user process Date: Fri, 29 Jun 2012 09:07:15 +0100 Message-ID: <1340957235.10942.72.camel@zakaz.uk.xensource.com> References: <20120628180007.06bb3fd3@mantra.us.oracle.com> <4FED7BD7020000780008CBFB@nat28.tlf.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FED7BD7020000780008CBFB@nat28.tlf.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: "Xen-devel@lists.xensource.com" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org On Fri, 2012-06-29 at 08:56 +0100, Jan Beulich wrote: > >>> On 29.06.12 at 03:00, Mukesh Rathor wrote: > > 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. > > Which means you're not leveraging one of the things you could > gain from hybrid (after all, returning the native value to user > mode is one of the weaknesses of PV). cpuid masking could happen in the HVM layer too, couldn't it? Probably "XEN_EMULATE_PREFIX cpuid" and raw "cpuid" ought to return the same set of PV values in hybrid? Ian.