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] XEN_GUEST_HANDLEs - help

To: <eak@xxxxxxxxxx>, <Xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: Re: [Xen-devel] XEN_GUEST_HANDLEs - help
From: Keir Fraser <Keir.Fraser@xxxxxxxxxxxx>
Date: Wed, 19 Dec 2007 14:35:03 +0000
Delivery-date: Wed, 19 Dec 2007 06:35:56 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
In-reply-to: <47690DF1.6040600@xxxxxxxxxx>
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: AchCTFdSlhkAXK4/EdyOmwAX8io7RQ==
Thread-topic: [Xen-devel] XEN_GUEST_HANDLEs - help
User-agent: Microsoft-Entourage/11.3.6.070618
    uint32_t *cpu_to_node = get_xen_guest_handle(put_info->cpu_to_node);
    cpu_to_node[0] = NUMA_NON_NODE;

 -- Keir

On 19/12/07 12:26, "beth kon" <eak@xxxxxxxxxx> wrote:

> Hi. I am playing with some code and not sure how to do what I want to do.
> 
> In the physinfo struct:
> XEN_GUEST_HANDLE_64(uint32_t) cpu_to_node;
> 
> So if I am in tools/libxc/xc_misc.c
> 
> and want to do (effectively)
> xc_physinfo_t *put_info
> ....
> put_info->cpu_to_node[0] = NUMA_NO_NODE;
> 
> how can I access the contents of the XEN_GUEST_HANDLE from the tools
> side? Can anyone explain how these XEN_GUEST_HANDLEs work? I am not
> quite getting what I see in the code



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

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