Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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 instead 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

like image 800
Zhongshu Avatar asked Nov 06 '22 07:11

Zhongshu


1 Answers

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.

like image 150
flypen Avatar answered Nov 17 '22 07:11

flypen