X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_hypercall.h;h=333c812f10dc5f2a190d5aad87e2d025187a1faf;hb=b8e77690b473b3ac50c5fef0a32d1710a2e8a1d9;hp=6ec146275e266010e70a68dc3bb30db201f98ed5;hpb=1dbd6d179c681dbce107af39c4089d1aa13a714d;p=palacios.git diff --git a/palacios/include/palacios/vmm_hypercall.h b/palacios/include/palacios/vmm_hypercall.h index 6ec1462..333c812 100644 --- a/palacios/include/palacios/vmm_hypercall.h +++ b/palacios/include/palacios/vmm_hypercall.h @@ -28,12 +28,13 @@ typedef struct rb_root v3_hypercall_map_t; struct guest_info; +struct v3_vm_info; -void v3_init_hypercall_map(struct guest_info * info); +void v3_init_hypercall_map(struct v3_vm_info * vm); -int v3_register_hypercall(struct guest_info * info, uint_t hypercall_id, - int (*hypercall)(struct guest_info * info, uint_t hcall_id, void * priv_data), +int v3_register_hypercall(struct v3_vm_info * vm, uint_t hypercall_id, + int (*hypercall)(struct guest_info * info , uint_t hcall_id, void * priv_data), void * priv_data); @@ -42,6 +43,15 @@ int v3_handle_hypercall(struct guest_info * info); +typedef enum { + MEM_OFFSET_HCALL = 0x1000, + GUEST_INFO_HCALL = 0x3000, + TELEMETRY_HCALL = 0x3001, + OS_DEBUG_HCALL = 0xc0c0 +} hcall_id_t; + + + #endif #endif