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

Re: [Xen-devel] 2 questions about hypercall



On Sat, 2011-11-26 at 06:33 +0000, anita wrote:
> Hi, I've been reading the xen source code recently, and I have got 2
> questions about hypercall.
> 
> 1. I find 2 header files named hypercall.h in the directory 
> linux/arch/x86/include. One is in the sub-directory
> /mach-xen/asm/hypercall.h, and the other is /asm/xen/hypercall.h.  After
> comparing these two, I find their contents are similar but different, and I
> can't figure out what's the difference between them, what their purposes are
> , and when kernel want to trap into xen hypervisor, which one will kernel
> chooseï

This is not the Xen source code. You appear to be looking at a linux
source tree but you haven't said which.

> 2. I find that the xen tools also used hypercall. My question is how does
> tools used it ? is the process the same as the kernel, or xen tools use
> hypercall in a different way?

They use libxenctrl which in turn uses a special ioctl
on /proc/xen/privcmd to make hypercalls.

Ian.

> 
> --
> View this message in context: 
> http://xen.1045712.n5.nabble.com/2-questions-about-hypercall-tp5024421p5024421.html
> Sent from the Xen - Dev mailing list archive at Nabble.com.
> 
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@xxxxxxxxxxxxxxxxxxx
> http://lists.xensource.com/xen-devel



_______________________________________________
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®.