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.


various changes...
[palacios.git] / palacios / src / palacios / vmm_ctrl_regs.c
index 838ce98..d3e9360 100644 (file)
@@ -324,19 +324,13 @@ int v3_handle_cr3_write(struct guest_info * info) {
            }
 
 
-
-           
            // If Paging is enabled in the guest then we need to change the shadow page tables
            if (info->mem_mode == VIRTUAL_MEM) {
-               if (info->shdw_pg_state.prev_guest_cr3 != info->shdw_pg_state.guest_cr3) {
-                   if (v3_activate_shadow_pt(info) == -1) {
-                       PrintError("Failed to activate 32 bit shadow page table\n");
-                       return -1;
-                   }
+               if (v3_activate_shadow_pt(info) == -1) {
+                   PrintError("Failed to activate 32 bit shadow page table\n");
+                   return -1;
                }
            }
-
-           info->shdw_pg_state.prev_guest_cr3 = info->shdw_pg_state.guest_cr3;
            
            PrintDebug("New Shadow CR3=%p; New Guest CR3=%p\n", 
                       (void *)(addr_t)(info->ctrl_regs.cr3),