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

[Xen-devel] hypercall_page

Hi,

Can someone let me know what exactly the array "hypercall_page " contains? Are they function pointers?

How do I know which functions are going to be called when a HYPERVISOR_xxx is called?

For instance, when the following asm code is to be executed:

define _hypercall3(type, sched_op, a1, a2, a3)                     \
({                                                              \
       long __res, __ign1, __ign2, __ign3;                     \
       asm volatile (                                          \
               "call hypercall_page + ("STR(__HYPERVISOR_##name)" * 32)"\
               : "=a" (__res), "=b" (__ign1), "=c" (__ign2),   \
               "=d" (__ign3)                                   \
               : "1" ((long)(a1)), "2" ((long)(a2)),           \
               "3" ((long)(a3))                                \
               : "memory" );                                   \
       (type)__res;                                            \
})

The #define for __HYPERVISOR_sched_op is 6

how do I find out which subroutine is the "call" going to call?

The above asm code is present in /arch/xen/kernel/hypercall.h

thanks !

_________________________________________________________________
Is your PC infected? Get a FREE online computer virus scan from McAfee® Security. http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963


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

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