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

[Xen-devel] [Patch 0/4] Refining Xsave/Xrestore support


  • To: xen-devel@xxxxxxxxxxxxxxxxxxx, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
  • From: Haitao Shan <maillists.shan@xxxxxxxxx>
  • Date: Wed, 27 Oct 2010 15:03:30 +0800
  • Cc: "Han, Weidong" <weidong.han@xxxxxxxxx>
  • Delivery-date: Wed, 27 Oct 2010 00:05:23 -0700
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:cc:content-type; b=tTJYRuJ6WXI8dZ+m2mC/WLIo6Qf4NW+/rCMdn4XOxAf4lZ0qAEQZqI3LJ3WbuT1Uxt QXWcG3JAeeYe6STpVlrxrytVelVv7MdXHg3PzN3Hvpk+6UJCHgArFfbk3LgFHVuQOxdS gO0Ky1KgNixbBNIV7eOc/vacil6ShQJANpXWg=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi, Keir,

The following patches refines Xen support for CPU Xsave/Xrestore
support. There are four patches included.
Patch 1/4:
    Cleaning up existing Xsave code in Xen.
        Replace xfeature_low and xfeature_high with a u64 variable
xfeature_mask.
        In structure hvm_vcpu, rename xfeature_mask to xcr0
        Provide EDX:EAX with all bits set to 1 for XSAVE and XRSTOR as spec 
recommends
Patch 2/4:
    Adding Xsave/Xrestore support for PV guests. Feature is exposed
via CPUID. XSETBV is trapped and emulated by Xen (via GP#).
Patch 3/4:
    Expose AVX to guest OSs.
Patch 4/4:
    Adding guest save/restore support when Xsave/Xrestore are available.
        Adding a pair of hypercalls for PV guest
        Adding a new data chunk for HVM guest.

There should already be some effort refining Xsave support in Xen. I
tried to read the related the email thread and incorporated the
comments from former threads.

Could you please have a review? Thanks in advance!

Shan Haitao

_______________________________________________
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®.