On Tue, May 17, 2016 at 8:43 PM, Big Strong <fangtu...@gmail.com> wrote: > Should the VMFUNC and #VE must run in kernel mode? I.E. as a linux kernel > module or windows driver? if it is, how to invoke hypercall from the domU > kernel, by ioctl(fd, IOCTL_PRIVCMD_HYPERCALL, hypercall) or directly issue > 0x82 interrupt?
The idea with #VE is that it converts the EPT violation to a specific in-guest interrupt. Interrupts are handled by the kernel, so you will need a kernel module that is handling that interrupt. Also, you can take a look at the xen-privcmd kernel module in the Linux kernel to get an idea on how to issue hypercalls. Tamas _______________________________________________ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel