第2章 Nucleus Hypervisor架构总览
c
// 一个典型的Nucleus Hypercall示例
#include "nucleus_vmm.h"
int comm_send_message(UINT32 vcpu_id, VMM_BMP_ID bmp_id, VMM_BMP_MSG *msg) {
return VMM_Hypercall_Invoke(VMM_HYPERCALL_BMP_SEND,
vcpu_id, (UINT32)bmp_id, (UINT32)msg);
}