Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


initial implementation of hookable exits
[palacios.git] / palacios / src / palacios / svm_handler.c
index 5849055..b270907 100644 (file)
@@ -256,7 +256,7 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i
 #ifdef V3_CONFIG_DEBUG_TIME
            PrintDebug("RDTSC/RDTSCP\n");
 #endif 
-           if (v3_handle_rdtsc(info) == -1) {
+           if (v3_dispatch_exit_hook(info, V3_EXIT_RDTSC, NULL) == -1) {
                PrintError("Error Handling RDTSC instruction\n");
                return -1;
            }
@@ -265,10 +265,11 @@ int v3_handle_svm_exit(struct guest_info * info, addr_t exit_code, addr_t exit_i
 #ifdef V3_CONFIG_DEBUG_TIME
            PrintDebug("RDTSCP\n");
 #endif 
-           if (v3_handle_rdtscp(info) == -1) {
-               PrintError("Error Handling RDTSCP instruction\n");
+           if (v3_dispatch_exit_hook(info, V3_EXIT_RDTSCP, NULL) == -1) {
+               PrintError("Error handling RDTSCP instruction\n");
                return -1;
            }
+           
            break;
        case SVM_EXIT_SHUTDOWN:
            PrintDebug("Guest-initiated shutdown\n");