X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fvmx_handler.c;h=91b56040d797487360b24d1f31c5bf9f1363161c;hb=0c31bb41ac41d04a891a6eeff5bae398fa89b419;hp=f24324ed23f8d531ffdc1bbdf1e759385a88210f;hpb=331eb3b042d3456e1eaf33eb9e32606774b715fb;p=palacios.git diff --git a/palacios/src/palacios/vmx_handler.c b/palacios/src/palacios/vmx_handler.c index f24324e..91b5604 100644 --- a/palacios/src/palacios/vmx_handler.c +++ b/palacios/src/palacios/vmx_handler.c @@ -50,10 +50,6 @@ int v3_handle_vmx_exit(struct guest_info * info, struct vmx_exit_info * exit_inf v3_print_vmcs(); */ -#ifdef CONFIG_VNET_PROFILE - uint64_t start, end; - rdtscll(start); -#endif #ifdef CONFIG_TELEMETRY if (info->vm_info->enable_telemetry) { @@ -226,28 +222,13 @@ int v3_handle_vmx_exit(struct guest_info * info, struct vmx_exit_info * exit_inf return -1; } + #ifdef CONFIG_TELEMETRY if (info->vm_info->enable_telemetry) { v3_telemetry_end_exit(info, exit_info->exit_reason); } #endif -#ifdef CONFIG_VNET_PROFILE - rdtscll(end); - info->vnet_times.total_exit_time = end - start; - if(info->vnet_times.print) - PrintError("Vnet_profiling: total_exit_time: %ld, total_handle_time: %ld memcpy_time: %ld copy_from_guest: %ld copy_to_guest: %ld malloc_free: %ld, route_lookup: %ld\n", - (long)info->vnet_times.total_exit_time, - (long)info->vnet_times.total_handle_time, - (long)info->vnet_times.memcpy_time, - (long)info->vnet_times.time_copy_from_guest, - (long)info->vnet_times.time_copy_to_guest, - (long)info->vnet_times.time_mallocfree, - (long)info->vnet_times.time_route_lookup); - - info->vnet_times.print = false; -#endif - return 0; }