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

[Xen-devel] Re: [RFC] xsave/xrstor: changes to the struct vcpu_guest_con

To: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>, Jan Beulich <jbeulich@xxxxxxxxxx>, Chris Wright <chrisw@xxxxxxxxxx>
Subject: [Xen-devel] Re: [RFC] xsave/xrstor: changes to the struct vcpu_guest_context
From: Keir Fraser <keir.fraser@xxxxxxxxxxxxx>
Date: Tue, 11 Aug 2009 11:48:27 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, "Zhai, Edwin" <edwin.zhai@xxxxxxxxx>
Delivery-date: Tue, 11 Aug 2009 03:48:55 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <EADF0A36011179459010BDF5142A457501CB98E0B1@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
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: Acoaa4TYa0uqLDNATfWeKo015oZaawABbznZ
Thread-topic: [RFC] xsave/xrstor: changes to the struct vcpu_guest_context
User-agent: Microsoft-Entourage/12.20.0.090605
On 11/08/2009 11:07, "Cui, Dexuan" <dexuan.cui@xxxxxxxxx> wrote:

> 1)  define a new struct vcpu_guest_context_new: its first feild is the legacy
> struct vcpu_guest_context and the other is the new xsave field;
> 2) add a new flag (a new bit definition) VGCF_xsave_valid to the existing
> 'flags' field;

Looks like a kludge. Quite apart from the fact that messing with
vcpu_guest_contexrt is a pita because its format differs between 32-bit and
64-bit callers/guests.

Instead, I suggest to simply make new domctls to get/set xsave state in its
raw format. That same format can be introduced as a new 'chunk' in HVM save
files too, and can automatically be included when making the 'hvm save'
hypercall. By raw format I mean exactly the format produced by XSAVE, albeit
perhaps excluding the first 512 'legacy' bytes.

 -- Keir



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

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