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.


added more selective debugging directives
[palacios-OLD.git] / palacios / src / palacios / svm_handler.c
index 94e3c8c..74c397c 100644 (file)
@@ -72,7 +72,7 @@ int handle_svm_exit(struct guest_info * info) {
   //  PrintDebug("SVM Returned: Exit Code: 0x%x \t\t(tsc=%ul)\n",exit_code, (uint_t)info->time_state.guest_tsc); 
   
   if ((0) && (exit_code < 0x4f)) {
-    char instr[32];
+    uchar_t instr[32];
     int ret;
     // Dump out the instr stream
 
@@ -236,7 +236,9 @@ int handle_svm_exit(struct guest_info * info) {
     break;
 
   case VMEXIT_HLT: {
+#ifdef DEBUG_HALT
     PrintDebug("Guest halted\n");
+#endif
     if (handle_svm_halt(info) == -1) {
       return -1;
     }
@@ -244,7 +246,7 @@ int handle_svm_exit(struct guest_info * info) {
     break;
 
   case VMEXIT_PAUSE: {
-    PrintDebug("Guest paused\n");
+    //PrintDebug("Guest paused\n");
     if (handle_svm_pause(info) == -1) { 
       return -1;
     }
@@ -321,7 +323,7 @@ int handle_svm_exit(struct guest_info * info) {
   default: {
 
     addr_t rip_addr;
-    char buf[15];
+    uchar_t buf[15];
     addr_t host_addr;
 
     PrintDebug("Unhandled SVM Exit: %s\n", vmexit_code_to_str(exit_code));