From: Keir Fraser Subject: Re: porting xen-detect ASM code into a shared library Date: Thu, 10 Jul 2008 11:57:57 +0100 Message-ID: References: <4875EA69.5040109@inria.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4875EA69.5040109@inria.fr> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Guillaume Rousse Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org On 10/7/08 11:54, "Guillaume Rousse" wrote: > I turned it into the current way because I don't need the check in pv > context, but I guess it might be simplified. Actually then you can take the xc_cpuid_x86 function pretty much unmodified (of course regs[0-3] become eax-edx, and input[1] is not needed). The other stuff in the asm code is to ensure that cpuid traps into the hypervisor when run in a pv guest. If you don't need to run in a pv guest then you don't need that extra code. -- Keir