From: "Jan Beulich" Subject: Re: [HYBRID]: XEN_EMULATE_PREFIX in user process Date: Fri, 29 Jun 2012 09:15:46 +0100 Message-ID: <4FED8052020000780008CC32@nat28.tlf.novell.com> References: <20120628180007.06bb3fd3@mantra.us.oracle.com> <4FED7BD7020000780008CBFB@nat28.tlf.novell.com> <1340957235.10942.72.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1340957235.10942.72.camel@zakaz.uk.xensource.com> Content-Disposition: inline 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" , Stefano Stabellini List-Id: xen-devel@lists.xenproject.org >>> On 29.06.12 at 10:07, Ian Campbell wrote: > 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? But CPUID masking is rather limited (after all that's why CPUID faulting got added later). > Probably "XEN_EMULATE_PREFIX cpuid" and raw "cpuid" ought to return the > same set of PV values in hybrid? Yes, that's what I would think. Jan