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] x86 instruction emulation in hvm

To: Emre Can Sezer <ecsezer@xxxxxxxx>
Subject: Re: [Xen-devel] x86 instruction emulation in hvm
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 12 May 2009 08:57:31 +0100
Cc: Xen Devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Tue, 12 May 2009 00:58:02 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <4A08A389.9060200@xxxxxxxx>
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnShgiFism+bJbDTsO9FtvJZ3vOTAAUUSTz
Thread-topic: [Xen-devel] x86 instruction emulation in hvm
User-agent: Microsoft-Entourage/12.17.0.090302
On 11/05/2009 23:15, "Emre Can Sezer" <ecsezer@xxxxxxxx> wrote:

> Yup.  Not only did hvm_get_segment_register() work like a charm, but I
> also ran into another problem as you have foretold.
> 
> The instruction is fxsave, which uses a mask to copy some CPU
> information to a 512byte memory.  Any chance of an emulation function
> for this instruction?

Go for it. ;-)

Define a 512-byte array, fxsave into it, and then write the array to guest
memory. Look at how some other FPU ops that write to memory are implemented
for further guidance.

 -- Keir



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

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