X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Finclude%2Fpalacios%2Fvmm_direct_paging.h;h=6e1a3b59206f4032571f720d98cf6d707315d064;hb=42b80fddfbfea5c5603b71d80d3e2ba2a53a2074;hp=925a29966a878a8f78db1c0a182cb4ddbeea7e26;hpb=a4fd5bcc79e7cdf9a3bd879294566bff0666ced7;p=palacios.git diff --git a/palacios/include/palacios/vmm_direct_paging.h b/palacios/include/palacios/vmm_direct_paging.h index 925a299..6e1a3b5 100644 --- a/palacios/include/palacios/vmm_direct_paging.h +++ b/palacios/include/palacios/vmm_direct_paging.h @@ -26,6 +26,7 @@ #include #include #include +#include /********************************** @@ -37,7 +38,9 @@ struct v3_passthrough_impl_state { // currently there is only a single implementation // that internally includes SVM and VMX support // The externally visible state is just the callbacks + v3_rw_lock_t event_callback_lock; struct list_head event_callback_list; + int inited; }; @@ -91,7 +94,7 @@ int v3_register_passthrough_paging_event_callback(struct v3_vm_info *vm, int v3_unregister_passthrough_paging_event_callback(struct v3_vm_info *vm, int (*callback)(struct guest_info *core, - struct v3_passthrough_pg_event, + struct v3_passthrough_pg_event *, void *priv_data), void *priv_data); @@ -106,7 +109,9 @@ struct v3_nested_impl_state { // currently there is only a single implementation // that internally includes SVM and VMX support // The externally visible state is just the callbacks + v3_rw_lock_t event_callback_lock; struct list_head event_callback_list; + int inited; }; int v3_init_nested_paging(struct v3_vm_info *vm); @@ -155,7 +160,7 @@ int v3_register_nested_paging_event_callback(struct v3_vm_info *vm, int v3_unregister_nested_paging_event_callback(struct v3_vm_info *vm, int (*callback)(struct guest_info *core, - struct v3_nested_pg_event, + struct v3_nested_pg_event *, void *priv_data), void *priv_data);