Skip to contentSkip to conversation

XEN_GUEST_HANDLEs - help

DISCUSSION beth kon 2 participants 2 messages Dec 19, 2007

lore
Share & tools
lore

beth kon

author
#0 lore raw

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

Signature · 4 lines
Elizabeth Kon (Beth)
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]
#1 lore raw
    uint32_t *cpu_to_node = get_xen_guest_handle(put_info->cpu_to_node);
    cpu_to_node[0] = NUMA_NON_NODE;

-- Keir

Quoted 15 lines · beth kon

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