WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] mmx sse emulation

To: "Andre Przywara" <andre.przywara@xxxxxxx>
Subject: Re: [Xen-devel] mmx sse emulation
From: "Ashish Bijlani" <ashish.bijlani@xxxxxxxxx>
Date: Wed, 5 Nov 2008 05:34:31 -0500
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx
Delivery-date: Wed, 05 Nov 2008 02:34:55 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=5CZycAz6xWNs7Ed2w9G7KyoEooULbh/4ITvA/olmjtw=; b=Y6kH4XFRSwld2XqndvJFxDC4imIm6/9eNzMKBicG1yv1BhPAClk0PsTw8OwPHIJZMK Zax6bJdJh5FEdwyAVkVf0+dCWDwVTvAJhSgMZ3jLBxPWBKyITgb4fA788ltdCUkO9ldg drI69sFB64+aMmSO0PGC5Iu+sSpo3ahX9dn/s=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=VA2BDAlVGI3G8ITdOiOmCGdg2JLtVd08aiDDhKCpBMF0llEHkvO6vyazuJJatAwx1o TBLllxcxlHwotvK2kYpLWDGNR8dATHzPjarxis95hS1qEclMEhvlUffwK+snenXEAOVF ctdE4mrAvJs6wPWDDvmpYQ7ctJ9YrxVTpnAog=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <49116E6D.9080408@xxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <ec55b17e0811041634n30c3fc19s5c425d8f41246776@xxxxxxxxxxxxxx> <49116E6D.9080408@xxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Hi Andre,

You are absolutely right. All hardware virtualization capable machines
have recent simd technology built-in. However, I'm just trying to
evaluate a case when HVM guests rely on the virtual hardware platform
and not on the actual hardware platform. Precisely, what would be the
performance gain/loss if hypervisor has to emulate the functionality.

-Ashish

On Wed, Nov 5, 2008 at 4:59 AM, Andre Przywara <andre.przywara@xxxxxxx> wrote:
> Ashish Bijlani wrote:
>>
>> Hi,
>>
>> 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.
>
> First: HVM guests require a virtualization capable processor. AFAIK all
> these processors support at least SSE2 (if not SSE3). So why do you want to
> emulate these instructions?
> Second: Applications should check the CPUID bit before using instruction set
> extension. So, if the host processor does not support MMX/SSE, the guest
> shouldn't see this bit, too. And I doubt that you are faster with emulating
> SSE compared to legacy x87-FPU executed natively.
>
> So, what is the use-case of your proposal? Or am I missing something here?
>
> Regards,
> Andre.
>
>> 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?
>>
>> Thanks,
>> Ashish
>
> --
> Andre Przywara
> AMD-OSRC (Dresden)
> Tel: x84917
>
>

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>