X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmm_exits.c;h=97504bccaeebe0ccbda29ecad4808b06464d21bf;hb=e3b62e7befa086a4fb320890952f54667ee46329;hp=8093faef81db3cbfea31b8e1f1f26a1b1de7bd6b;hpb=2f4952e76f4fadb1abd32626b57b6d9b272003cc;p=palacios.git diff --git a/palacios/src/palacios/vmm_exits.c b/palacios/src/palacios/vmm_exits.c index 8093fae..97504bc 100644 --- a/palacios/src/palacios/vmm_exits.c +++ b/palacios/src/palacios/vmm_exits.c @@ -156,8 +156,7 @@ int v3_hook_exit(struct v3_vm_info * vm, v3_exit_type_t exit_type, hook->handler = handler; hook->priv_data = priv_data; - if ((vm->run_state == VM_RUNNING) || - (vm->run_state == VM_SIMULATING)) { + if (vm->run_state != VM_INVALID) { int i = 0; while (v3_raise_barrier(vm, current_core) == -1); @@ -207,8 +206,7 @@ int v3_unhook_exit(struct v3_vm_info * vm, v3_exit_type_t exit_type, struct gues hook->priv_data = NULL; - if ((vm->run_state == VM_RUNNING) || - (vm->run_state == VM_SIMULATING)) { + if (vm->run_state != VM_INVALID) { int i = 0; while (v3_raise_barrier(vm, current_core) == -1);