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.


This patch allows the guest to shut down the virtual machine (by triple-faulting...
Erik van der Kouwe [Mon, 29 Nov 2010 21:41:51 +0000 (15:41 -0600)]
palacios/src/palacios/svm_handler.c

index 171d2b5..d8fde21 100644 (file)
@@ -264,6 +264,14 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i
                return -1;
            }
            break;
+       case VMEXIT_SHUTDOWN:
+           PrintDebug("Guest-initiated shutdown\n");
+
+           info->vm_info->run_state = VM_STOPPED;
+
+           // Force exit on other cores
+
+           break;
 
 
            /* Exits Following this line are NOT HANDLED */