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

Re: [Xen-users] hypercall implementation



On Tue, 2013-12-10 at 18:55 +0800, åäé wrote:
> But what's the content (src code) of hypercall_page?
>  How is the hypercall implemented?

You need to be looking on the hypervisor side for that. It is a page of
code which is mapped into the guest kernel and contains the necessary
instructions (int 0x82, syscall, vmcall, etc) depending on the guest
type etc. For a PV guest it is populated by the Xen tools asking the
hypervisor to do so during guest build and for a PVHVM guest it is
populated by the guest writing to a special MSR, see enlighten.c in the
Linux kernel, specifically init_hvm_pv_info().

Ian.



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

 


Rackspace

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