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

Re: [Xen-devel] [ Help! ] how is ctx->xch in xen/tools/libxl/xl_cmdimpl.c initialized?



On Thu, Apr 11, 2013 at 02:06:58PM +0100, Li Yechen wrote:
> I try to trap the xl command: main_memset() in tools/libxl/xl.h
> and it goes to do_xen_hypercall(xch, *hypercall) on line 246, 
> xen4.1.2/tools/libxc/xc_private.c
> 
> this function then call: xch->ops->u.privcmd.hypercall() which is a function 
> pointer
> the xch is a member of global varible: libxl_ctx *ctx, which is in line66ï 
> tools/libxl/xl_cmdimpl.c
> 
> then I can't find where the function pointer goes to, nor does the place 
> where this function pointer is initialized.
> Any one is familiar with this variable? Help me please! Thank you very much!
> 

xch is a handle to Xen privcmd. Please look at OS dependent code in
libxc such as xc_linux_osdep.c


Wei.

> --
> Yechen Li
> 
> Team of System Virtualization and Cloud Computing
> School of Electronic Engineering  and Computer Science,
> Peking University, China
> 
> Nothing is impossible because impossible itself  says: " I'm possible "
> lccycc From PKU

> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxx
> http://lists.xen.org/xen-devel


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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