From: Jack Lange Date: Fri, 5 Nov 2010 21:09:44 +0000 (-0500) Subject: added framework for stopping guest execution X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=c34c5f5b168274193ef1b766b2054bd3939466d4;p=palacios.git added framework for stopping guest execution --- diff --git a/palacios/src/palacios/vmm.c b/palacios/src/palacios/vmm.c index 92fbcbf..4db75f1 100644 --- a/palacios/src/palacios/vmm.c +++ b/palacios/src/palacios/vmm.c @@ -234,6 +234,21 @@ int v3_start_vm(struct v3_vm_info * vm, unsigned int cpu_mask) { } +int v3_stop_vm(struct v3_vm_info * vm) { + + vm->run_state = VM_STOPPED; + + + // force exit all cores via a cross call/IPI + + // Wait for all cores to enter CORE_STOPPED state + + // deinitialize guest (free memory, etc...) + + return 0; +} + + #ifdef __V3_32BIT__ v3_cpu_mode_t v3_get_host_cpu_mode() {