X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_handler.c;h=5736234e2b491475cb08f2bbcec0b292e2c54837;hb=cfcceed5890430afedcc544bd7dbb69e29dfd65a;hp=a70b0dd2c07884e25f4abb585a12f6f258efc0e7;hpb=82b8b87c344fcd1eab22e3f3be5ad54cbb3f8f68;p=palacios.git diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index a70b0dd..5736234 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -24,16 +24,18 @@ #include #include #include -#include +#include #include #include #include #include #include -#include #include #include +#ifdef CONFIG_TELEMETRY +#include +#endif int v3_handle_svm_exit(struct guest_info * info) { @@ -97,9 +99,9 @@ int v3_handle_svm_exit(struct guest_info * info) { } -#ifdef CONFIG_PROFILE_VMM - if (info->enable_profiler) { - rdtscll(info->profiler.start_time); +#ifdef CONFIG_TELEMETRY + if (info->enable_telemetry) { + v3_telemetry_start_exit(info); } #endif @@ -262,7 +264,7 @@ int v3_handle_svm_exit(struct guest_info * info) { #ifdef CONFIG_DEBUG_HALT PrintDebug("Guest halted\n"); #endif - if (v3_handle_svm_halt(info) == -1) { + if (v3_handle_halt(info) == -1) { return -1; } break; @@ -320,10 +322,9 @@ int v3_handle_svm_exit(struct guest_info * info) { } // END OF SWITCH (EXIT_CODE) -#ifdef CONFIG_PROFILE_VMM - if (info->enable_profiler) { - rdtscll(info->profiler.end_time); - v3_profile_exit(info, exit_code); +#ifdef CONFIG_TELEMETRY + if (info->enable_telemetry) { + v3_telemetry_end_exit(info, exit_code); } #endif