开发者

How to use the hypercall of kvm?

I want to use the hypercall of kvm to communicate (just send strings, it is uni-directional) between the guest and vmm instea开发者_如何学JAVAd of creating a network channel between the guest os and host. I have only found the file arch/x86/include/asm/kvm_para.h in linux kernel? Is it similar to the system call of linux? How can I call these functions from the user level process running inside the guest os? Is there any manual or documents for this? Or can you give some examples of utilizing this mechanisms. Thanks


My opinion is that you can add a specific driver in guest OS, which can communicate with host easily via share memory or other methods. With the driver, you can do very complicated tasks with high performance.


More than a bit late, but if you want to send strings, you can create a serial device in kvm/qemu and use standard serial output from your application. qemu has a very flexible virtual serial port system.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜