[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] x86 instruction emulation in hvm


  • To: Emre Can Sezer <ecsezer@xxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AcnShgiFism+bJbDTsO9FtvJZ3vOTAAUUSTz
  • Thread-topic: [Xen-devel] x86 instruction emulation in hvm

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.