* XEN_GUEST_HANDLEs - help
@ 2007-12-19 12:26 beth kon
2007-12-19 14:35 ` Keir Fraser
0 siblings, 1 reply; 2+ messages in thread
From: beth kon @ 2007-12-19 12:26 UTC (permalink / raw)
To: Xen-devel
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
--
Elizabeth Kon (Beth)
IBM Linux Technology Center
Open Hypervisor Team
email: eak@us.ibm.com
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: XEN_GUEST_HANDLEs - help
2007-12-19 12:26 XEN_GUEST_HANDLEs - help beth kon
@ 2007-12-19 14:35 ` Keir Fraser
0 siblings, 0 replies; 2+ messages in thread
From: Keir Fraser @ 2007-12-19 14:35 UTC (permalink / raw)
To: eak, Xen-devel
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@us.ibm.com> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-12-19 14:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-12-19 12:26 XEN_GUEST_HANDLEs - help beth kon
2007-12-19 14:35 ` Keir Fraser
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.