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

Re: [Xen-devel] XEN_GUEST_HANDLEs - help


  • To: <eak@xxxxxxxxxx>, <Xen-devel@xxxxxxxxxxxxxxxxxxx>
  • 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
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AchCTFdSlhkAXK4/EdyOmwAX8io7RQ==
  • Thread-topic: [Xen-devel] XEN_GUEST_HANDLEs - help

    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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.