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.


don't allow launch of an already running VM
[palacios.git] / palacios / src / palacios / vmm_shadow_paging.c
index f57ddda..d3e4c93 100644 (file)
@@ -197,6 +197,11 @@ int v3_init_shdw_impl(struct v3_vm_info * vm) {
 int v3_deinit_shdw_impl(struct v3_vm_info * vm) {
     struct v3_shdw_pg_impl * impl = vm->shdw_impl.current_impl;
 
+    if (impl == NULL) {
+       // Shadow paging not implemented
+       return 0;
+    }
+
     if (impl->deinit(vm) == -1) {
        PrintError("Error deinitializing shadow paging implementation\n");
        return -1;