X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Finterfaces%2Fvmm_host_hypercall.c;h=614ea30fbea3d94471b9da38e68ca330db1132cc;hb=c1810f8134ef829599525d30856970f0155da1f3;hp=0299268f62928883ee1ee93acb677efe47165103;hpb=d6a4d7bf28c8962ad6a1499d0b74b9e5cdf892ad;p=palacios.git diff --git a/palacios/src/interfaces/vmm_host_hypercall.c b/palacios/src/interfaces/vmm_host_hypercall.c index 0299268..614ea30 100644 --- a/palacios/src/interfaces/vmm_host_hypercall.c +++ b/palacios/src/interfaces/vmm_host_hypercall.c @@ -64,7 +64,7 @@ GET_SET_CR_IMPL(cr0) GET_SET_CR_IMPL(cr2) GET_SET_CR_IMPL(cr3) GET_SET_CR_IMPL(cr4) -GET_SET_CR_IMPL(cr8) +GET_SET_CR_IMPL(apic_tpr) GET_SET_CR_IMPL(efer) GET_SET_CR_IMPL(rflags) @@ -93,7 +93,7 @@ DECL_IT(cr0) DECL_IT(cr2) DECL_IT(cr3) DECL_IT(cr4) -DECL_IT(cr8) +DECL_IT(apic_tpr) DECL_IT(efer) DECL_IT(rflags) @@ -142,7 +142,8 @@ int v3_register_host_hypercall(host_vm_info_t * vm, struct bounce_data *b = V3_Malloc(sizeof(struct bounce_data)); if (!b) { - return -1; + PrintError((struct v3_vm_info*)vm, VCORE_NONE, "Unable to allocate in registering host hypercall\n"); + return -1; } b->hypercall=hypercall; @@ -152,7 +153,9 @@ int v3_register_host_hypercall(host_vm_info_t * vm, hypercall_id, bounce, b) < 0) { - return -1; + PrintError((struct v3_vm_info*)vm, VCORE_NONE, "Cannot register host hypercall\n"); + V3_Free(b); + return -1; } return 0;