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.


fixed paging callbacks to normalize calling convention
[palacios.git] / palacios / src / palacios / svm_handler.c
index 893f49c..b13b761 100644 (file)
@@ -366,8 +366,6 @@ int v3_handle_svm_exit(struct guest_info * info) {
   default: {
 
     addr_t rip_addr;
-    uchar_t buf[15];
-    addr_t host_addr;
 
     PrintDebug("Unhandled SVM Exit: %s\n", vmexit_code_to_str(exit_code));
 
@@ -387,39 +385,6 @@ int v3_handle_svm_exit(struct guest_info * info) {
     PrintError("io_info2 high = 0x%.8x\n", *(uint_t *)(((uchar_t *)&(guest_ctrl->exit_info2)) + 4));
 
     
-
-    if (info->mem_mode == PHYSICAL_MEM) {
-      if (guest_pa_to_host_va(info, guest_state->rip, &host_addr) == -1) {
-       PrintError("Could not translate guest_state->rip to host address\n");
-       return -1;
-      }
-    } else if (info->mem_mode == VIRTUAL_MEM) {
-      if (guest_va_to_host_va(info, guest_state->rip, &host_addr) == -1) {
-       PrintError("Could not translate guest_state->rip to host address\n");
-       return -1;
-      }
-    } else {
-      PrintError("Invalid memory mode\n");
-      return -1;
-    }
-    
-    PrintError("Host Address of rip = 0x%p\n", (void *)host_addr);
-    
-    memset(buf, 0, 32);
-    
-    PrintError("Reading instruction stream in guest (addr=%p)\n", (void *)rip_addr);
-    
-    if (info->mem_mode == PHYSICAL_MEM) {
-      read_guest_pa_memory(info, rip_addr - 16, 32, buf);
-    } else {
-      read_guest_va_memory(info, rip_addr - 16, 32, buf);
-    }
-    
-    PrintDebug("16 bytes before Rip\n");
-    PrintTraceMemDump(buf, 16);
-    PrintDebug("Rip onward\n");
-    PrintTraceMemDump(buf+16, 16);
-    
     return -1;
 
   }