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] [PATCH,RFC 0/17] 32-on-64 work progress

To: Gerd Hoffmann <kraxel@xxxxxxx>
Subject: Re: [Xen-devel] [PATCH,RFC 0/17] 32-on-64 work progress
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 11 Oct 2006 11:20:23 +0100
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Jan Beulich <jbeulich@xxxxxxxxxx>
Delivery-date: Wed, 11 Oct 2006 03:20:52 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <452CC484.6060403@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/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcbtHtxzGssHA1kSEduc9gAX8io7RQ==
Thread-topic: [Xen-devel] [PATCH,RFC 0/17] 32-on-64 work progress
User-agent: Microsoft-Entourage/11.2.5.060620


On 11/10/06 11:16, "Gerd Hoffmann" <kraxel@xxxxxxx> wrote:

> Sure, they have to know.  Question is what do you pass in when changing
> a 32bit guest from 64bit dom0.  The 32bit struct?  The 64bit struct?

In general, the 64b struct. ABI shims in Xen will be selected based on the
execution mode of the caller, not that subject domain (if there is one).

> think in many cases both will work just fine and we have just have to
> pick one way.  XEN_DOMCTL_setvcpucontext is a icky one though, the 64bit
>  struct isn't a superset of the 32bit struct, so we probably have to
> pass the 32bit version for 32bit guests.

In this case we extend the semantics of get/setvcpucontext to say that you
pass a pointer to a vcpu_context structure corresponding to the execution
mode of the subject.

 -- Keir



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