X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?a=blobdiff_plain;f=palacios%2Fsrc%2Fpalacios%2Fsvm_handler.c;h=ef33407d695a8a02be966c0c3694322f52f13194;hb=7305da0751e30ef0a6392f949c77c0c54d47f6b9;hp=8a1a32fb69b5b08bb6979e38fdb470994b01e09e;hpb=191587141ec414547ca95a7eb134a8cbb1b2a292;p=palacios.releases.git diff --git a/palacios/src/palacios/svm_handler.c b/palacios/src/palacios/svm_handler.c index 8a1a32f..ef33407 100644 --- a/palacios/src/palacios/svm_handler.c +++ b/palacios/src/palacios/svm_handler.c @@ -258,6 +258,21 @@ int handle_svm_exit(struct guest_info * info) { return -1; } } else { + /* + ulong_t tsc_spread = 0; + ullong_t exit_tsc = 0; + + ulong_t rax = (ulong_t)info->vm_regs.rbx; + ulong_t rdx = (ulong_t)info->vm_regs.rcx; + + *(ulong_t *)(&exit_tsc) = rax; + *(((ulong_t *)(&exit_tsc)) + 1) = rdx; + + tsc_spread = info->exit_tsc - exit_tsc; + + PrintError("VMMCALL tsc diff = %lu\n",tsc_spread); + info->rip += 3; + */ PrintError("VMMCALL with not emulator...\n"); return -1; } @@ -452,7 +467,6 @@ int handle_svm_exit(struct guest_info * info) { const uchar_t * vmexit_code_to_str(uint_t exit_code) { - switch(exit_code) { case VMEXIT_CR0_READ: return VMEXIT_CR0_READ_STR;