Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


core checkpoint import
[palacios.git] / palacios / include / palacios / vmm_shadow_paging.h
index a88270b..22b0651 100644 (file)
@@ -39,6 +39,7 @@ struct v3_shdw_pg_impl {
     int (*init)(struct v3_vm_info * vm, v3_cfg_tree_t * cfg);
     int (*deinit)(struct v3_vm_info * vm);
     int (*local_init)(struct guest_info * core);
+    int (*local_deinit)(struct guest_info * core);
     int (*handle_pagefault)(struct guest_info * core, addr_t fault_addr, pf_error_t error_code);
     int (*handle_invlpg)(struct guest_info * core, addr_t vaddr);
     int (*activate_shdw_pt)(struct guest_info * core);
@@ -62,7 +63,7 @@ struct v3_shdw_pg_state {
 
     void * local_impl_data;
 
-#ifdef CONFIG_SHADOW_PAGING_TELEMETRY
+#ifdef V3_CONFIG_SHADOW_PAGING_TELEMETRY
     uint_t guest_faults;
 #endif
 
@@ -74,7 +75,10 @@ struct v3_shdw_pg_state {
 
 
 int v3_init_shdw_impl(struct v3_vm_info * vm);
-int v3_init_shdw_pg_state(struct guest_info * info);
+int v3_deinit_shdw_impl(struct v3_vm_info * vm);
+
+int v3_init_shdw_pg_state(struct guest_info * core);
+int v3_deinit_shdw_pg_state(struct guest_info * core);
 
 
 /* Handler implementations */
@@ -95,6 +99,7 @@ int v3_is_guest_pf(pt_access_status_t guest_access, pt_access_status_t shadow_ac
 
 
 int V3_init_shdw_paging();
+int V3_deinit_shdw_paging();
 
 #define register_shdw_pg_impl(impl)                                    \
     static struct v3_shdw_pg_impl * _v3_shdw_pg_impl                   \