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 bounds checking for bitmap updates
Jack Lange [Mon, 14 Nov 2011 23:41:31 +0000 (18:41 -0500)]
palacios/src/palacios/vmx_msr.c

index f470c37..ae64331 100644 (file)
@@ -51,6 +51,12 @@ static int update_map(struct v3_vm_info * vm, uint_t msr, int hook_reads, int ho
     uint8_t write_val = (hook_writes) ? 0x1 : 0x0;
     uint8_t * bitmap = (uint8_t *)(vm->msr_map.arch_data);
 
+    if (index == -1) {
+       //      0rintError("Error updating MSR Map failed bitmap index for (0x%x)\n", msr);
+       // MSRs not in the bitmap covered range will always trigger exits, so we don't need to worry about them here.
+       return 0;
+    }
+
     *(bitmap + major) &= ~(mask << minor);
     *(bitmap + major) |= (read_val << minor);