From: Kyle Hale Date: Fri, 13 Apr 2012 22:14:27 +0000 (-0500) Subject: Change of hypercall semantics - rax no longer contains error code for palacios X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=commitdiff_plain;h=002d46c777ac52048d0a3e82c80821ad3c8fef46;hp=67f99136a8d412f865f68b16f6875fe3969ce900;p=palacios.git Change of hypercall semantics - rax no longer contains error code for palacios --- diff --git a/palacios/src/palacios/vmm_hypercall.c b/palacios/src/palacios/vmm_hypercall.c index b614896..6cb51e0 100644 --- a/palacios/src/palacios/vmm_hypercall.c +++ b/palacios/src/palacios/vmm_hypercall.c @@ -181,10 +181,9 @@ int v3_handle_hypercall(struct guest_info * info) { return -1; } - if (hcall->hcall_fn(info, hypercall_id, hcall->priv_data) == 0) { - info->vm_regs.rax = 0; - } else { - info->vm_regs.rax = -1; + if (hcall->hcall_fn(info, hypercall_id, hcall->priv_data) != 0) { + PrintError("Error handling hypercall\n"); + return -1; } return 0;