简体   繁体   English

在 C 程序或命令行中使用 Xen 超级调用

[英]Using Xen hypercalls in a C program or command line

Is it possible to use xen Hypercalls in a C program (such as kernel Syscalls)or within a command line?是否可以在 C 程序(例如内核系统调用)或命令行中使用 xen Hypercalls? I need to issues some commands from userspce directly to Xen hypervisor which for that i thought maybe it can be helpful.我需要从 userspce 直接向 Xen 管理程序发出一些命令,我​​认为这可能会有所帮助。 But actually is it possible?但实际上有可能吗? if yes, How?如果是,如何? Thanks and regards.感谢致敬。

A hypercall is to a syscall what a hypervisor is to an OS.超级调用之于系统调用就像管理程序之于操作系统一样。 Alternatively, a hypercall is to a hypervisor what a syscall is to a kernel.或者,超级调用对于管理程序就像系统调用对于内核一样。 A hypercall is a software trap from a domain to the hypervisor, just as a syscall is a software trap from an application to the kernel.超级调用是从域到管理程序的软件陷阱,就像系统调用是从应用程序到内核的软件陷阱一样。 Domains will use hypercalls to request privileged operations like updating pagetables.域将使用超级调用来请求特权操作,例如更新分页表。 Like a syscall, the hypercall is synchronous, but the return path from the hypervisor to the domain uses event channels.与系统调用一样,超级调用是同步的,但从管理程序到域的返回路径使用事件通道。 An event channel is a queue of asynchronous notifications, and notify of the same sorts of events that interrupts notify on native hardware.事件通道是一个异步通知队列,并通知与本地硬件上的中断通知相同类型的事件。 When a domain with pending events in its queue is scheduled, the OS's event-callback handler is called to take appropriate action.当一个在其队列中有待处理事件的域被调度时,操作系统的事件回调处理程序被调用以采取适当的行动。

See xen/include/public/xen.h in the Xen sources and the Xen Documentation - Hypercall Interfaces请参阅 Xen 源代码和Xen 文档中的xen/include/public/xen.h - Hypercall 接口

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM