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.


Removed print in vmm_halt
[palacios.git] / palacios / src / palacios / vm_guest_mem.c
index 9a7fe63..8cc497a 100644 (file)
@@ -64,7 +64,7 @@ int v3_hpa_to_hva(addr_t hpa, addr_t * hva) {
 }
 
 int v3_gpa_to_hpa(struct guest_info * info, addr_t gpa, addr_t * hpa) {
-    struct v3_mem_region * reg = v3_get_mem_region(info->vm_info, info->cpu_id, gpa);
+    struct v3_mem_region * reg = v3_get_mem_region(info->vm_info, info->vcpu_id, gpa);
 
     if (reg == NULL) {
        PrintError("In GPA->HPA: Could not find address in shadow map (addr=%p) (NULL REGION)\n", 
@@ -73,8 +73,9 @@ int v3_gpa_to_hpa(struct guest_info * info, addr_t gpa, addr_t * hpa) {
     }
     
     if (reg->flags.alloced == 0) {
-       PrintError("In GPA->HPA: Tried to translate physical address of non allocated page (addr=%p)\n", 
-                  (void *)gpa);
+       //PrintError("In GPA->HPA: Tried to translate physical address of non allocated page (addr=%p)\n", 
+       //         (void *)gpa);
+    //v3_print_mem_map(info->vm_info);
        return -1;
     }
        
@@ -132,8 +133,8 @@ int v3_gpa_to_hva(struct guest_info * guest_info, addr_t gpa, addr_t * hva) {
     *hva = 0;
 
     if (v3_gpa_to_hpa(guest_info, gpa, &hpa) != 0) {
-       PrintError("In GPA->HVA: Invalid GPA(%p)->HPA lookup\n", 
-                  (void *)gpa);
+       //      PrintError("In GPA->HVA: Invalid GPA(%p)->HPA lookup\n", 
+       //         (void *)gpa);
        return -1;
     }