X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_assist.c;h=d836ad22343b7775c8e756222ca49c569d69cebc;hb=9798c8b5ac49f9b8b9e545aa8e7bbf0b8ae46ee0;hp=892a69ea5968a5e2d5bb0438bec17b34d94f17e8;hpb=b1f2d60bdd24fb6f758ad049c0a6859966a38955;p=palacios.git diff --git a/palacios/src/palacios/vmx_assist.c b/palacios/src/palacios/vmx_assist.c index 892a69e..d836ad2 100644 --- a/palacios/src/palacios/vmx_assist.c +++ b/palacios/src/palacios/vmx_assist.c @@ -22,6 +22,11 @@ #include #include +#ifndef CONFIG_DEBUG_VMX +#undef PrintDebug +#define PrintDebug(fmt, args...) +#endif + static void vmx_save_world_ctx(struct guest_info * info, struct vmx_assist_context * ctx); static void vmx_restore_world_ctx(struct guest_info * info, struct vmx_assist_context * ctx); @@ -33,7 +38,7 @@ int v3_vmxassist_ctx_switch(struct guest_info * info) { - if (guest_pa_to_host_va(info, VMXASSIST_BASE, (addr_t *)&hdr) == -1) { + if (v3_gpa_to_hva(info, VMXASSIST_BASE, (addr_t *)&hdr) == -1) { PrintError("Could not translate address for vmxassist header\n"); return -1; } @@ -44,12 +49,12 @@ int v3_vmxassist_ctx_switch(struct guest_info * info) { } - if (guest_pa_to_host_va(info, (addr_t)(hdr->old_ctx_gpa), (addr_t *)&(old_ctx)) == -1) { + if (v3_gpa_to_hva(info, (addr_t)(hdr->old_ctx_gpa), (addr_t *)&(old_ctx)) == -1) { PrintError("Could not translate address for VMXASSIST old context\n"); return -1; } - if (guest_pa_to_host_va(info, (addr_t)(hdr->new_ctx_gpa), (addr_t *)&(new_ctx)) == -1) { + if (v3_gpa_to_hva(info, (addr_t)(hdr->new_ctx_gpa), (addr_t *)&(new_ctx)) == -1) { PrintError("Could not translate address for VMXASSIST new context\n"); return -1; }