From: Erik van der Kouwe Date: Mon, 29 Nov 2010 21:41:51 +0000 (-0600) Subject: This patch allows the guest to shut down the virtual machine (by triple-faulting... X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=887902f1d216eefcffb792a2a2de014a174e9445;p=palacios.git This patch allows the guest to shut down the virtual machine (by triple-faulting) without triggering error messages (and probably avoiding issues in the multi-core case as well). --- diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index 171d2b5..d8fde21 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -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 */