From: "Ashish Bijlani" Subject: Re: mmx sse emulation Date: Wed, 5 Nov 2008 02:52:07 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Keir Fraser Cc: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi Keir, Thanks for the help. I've one more doubt though. Calling x86_emulate from do_device_not_available after validating the EM flag would work? Of course provided MMX/SS emulation code reside in x86_emulate. Please lemme know. Thanks, Ashish On Wed, Nov 5, 2008 at 2:34 AM, Keir Fraser wrote: > On 5/11/08 00:34, "Ashish Bijlani" wrote: > >> >> I want to emulate mmx/sse for hvm guests when applications inside hvm >> guests are compiled for mmx/sse but the underlying hardware doesn't >> support mmx/sse. What is the best place to do this? i'm looking at >> x86_emulate but i dunno if that is the best place to put the emulation >> layer. any suggestions?? also, currently movq emulation is present in >> x86_emulate for handling mmio. however, i realized that get_fpu fails >> if the hardware doesn't have mmx capability. is it true or am i >> missing something here? > > x86_emulate() does its work by using the actual underlying processor > instructions (really it is a system emulator rather than an instruction > emulator). This wouldn't necessarily stop you adding full emulation for > certain instructions like SSE/MMX though, and it's probably the right place > to put that sort of thing. > > -- Keir > > >