lkml.org 
[lkml]   [2012]   [Jan]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: Could anybody give some description about the implement of hyercall in kvm?
From
On Thu, Jan 12, 2012 at 5:21 PM, Stefan Hajnoczi <stefanha@gmail.com> wrote:
> On Thu, Jan 12, 2012 at 4:38 AM, Liu ping fan <kernelfans@gmail.com> wrote:
>> Could anybody give some description about the implement of hyercall in
>> kvm? Or give some links about it?
>
> Try git grep hypercall arch/x86/kvm.
>
> Take a look at arch/x86/kvm/x86.c kvm_set_msr_common() and
> kvm_emulate_hypercall().  Some of the KVM time-keeping, minimal HyperV
> support, and async page faults live there.  Also see
> arch/x86/include/asm/kvm_para.h.
>
> Hypercalls are architecture-specific so if you are interested in ppc
> or s390, check those arch directories.
>
Thanks, but when I tried to start from the macro "____PVOP_VCALL", but
lost in it. If there is some document like the hypercall in Xen, this
will be appreciated. (And I guest Hypercall in kvm is the same as Xen
which is very similar to syscall, right?)

Thanks
ping fan

> Stefan
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2012-01-13 08:47    [W:0.066 / U:0.424 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site