X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_io.c;h=d69787abeeb8d90258d256408201342e70bac53f;hb=94f67717b6461df514dc225ed84f03b44c44061b;hp=4e94f693119d19d5732ee0becb313889a2165de6;hpb=3e5e5a12e64630d7a37ed32b8d7e2d993c79f7e0;p=palacios-OLD.git diff --git a/palacios/src/palacios/vmx_io.c b/palacios/src/palacios/vmx_io.c index 4e94f69..d69787a 100644 --- a/palacios/src/palacios/vmx_io.c +++ b/palacios/src/palacios/vmx_io.c @@ -25,7 +25,7 @@ #include #include -#ifndef CONFIG_DEBUG_IO +#ifndef V3_CONFIG_DEBUG_IO #undef PrintDebug #define PrintDebug(fmt, args...) #endif @@ -57,6 +57,12 @@ int v3_init_vmx_io_map(struct v3_vm_info * vm) { return 0; } +int v3_deinit_vmx_io_map(struct v3_vm_info * vm) { + V3_FreePages(V3_PAddr(vm->io_map.arch_data), 2); + return 0; +} + + int v3_handle_vmx_io_in(struct guest_info * core, struct vmx_exit_info * exit_info) { struct vmx_exit_io_qual io_qual = *(struct vmx_exit_io_qual *)&(exit_info->exit_qual);; struct v3_io_hook * hook = NULL; @@ -131,7 +137,7 @@ int v3_handle_vmx_io_ins(struct guest_info * core, struct vmx_exit_info * exit_i - if (guest_va_to_host_va(core, guest_va, &host_addr) == -1) { + if (v3_gva_to_hva(core, guest_va, &host_addr) == -1) { PrintError("Could not convert Guest VA to host VA\n"); return -1; } @@ -236,7 +242,7 @@ int v3_handle_vmx_io_outs(struct guest_info * core, struct vmx_exit_info * exit_ PrintDebug("OUTS size=%d for %ld steps\n", write_size, rep_num); - if (guest_va_to_host_va(core, guest_va, &host_addr) == -1) { + if (v3_gva_to_hva(core, guest_va, &host_addr) == -1) { PrintError("Could not convert guest VA to host VA\n"); return -1; }