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: xencomm address space API

To: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Subject: [Xen-devel] Re: xencomm address space API
From: Hollis Blanchard <hollisb@xxxxxxxxxx>
Date: Wed, 08 Feb 2006 13:18:45 +1100
Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Wed, 08 Feb 2006 02:35:54 +0000
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <d03c55d46049b70da00eaf3672ccd153@xxxxxxxxxxxx>
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>
Organization: IBM Linux Technology Center
References: <1139283935.13776.71.camel@xxxxxxxxxxxxxxxxxxxxx> <d03c55d46049b70da00eaf3672ccd153@xxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
On Tue, 2006-02-07 at 14:28 +0000, Keir Fraser wrote:
> 
> > This mail isn't comprehensive, but I think gives some idea of the
> > complexity involved. So a solution like replacing pointers with 
> > embedded structures is far more attractive.
> 
> Not sure what you mean. Can you give an example?

typedef struct dom0_setvcpucontext {
    /* IN variables. */
    domid_t               domain;
    uint32_t              vcpu;
    /* IN/OUT parameters */
    vcpu_guest_context_t ctxt;
} dom0_setvcpucontext_t;

Note that 'ctxt' is no longer a pointer.

This is a far simpler solution, though it does introduce a size
limitation for memory-based hcalls; I went into some detail in my other
mail. Could you reply to that if there's something unclear?

-- 
Hollis Blanchard
IBM Linux Technology Center


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