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.


Context-based output infrastructure (V3_Print, etc) and modifications to use it
[palacios.git] / palacios / src / extensions / ext_mtrr.c
index 1f22345..9232bb7 100644 (file)
@@ -546,7 +546,7 @@ static int init_mtrrs(struct v3_vm_info * vm, v3_cfg_tree_t * cfg, void ** priv_
     state = V3_Malloc(sizeof(struct mtrr_state));
 
     if (!state) {
-       PrintError("Cannot allocate in initializing MTRRs\n");
+        PrintError(vm, VCORE_NONE, "Cannot allocate in initializing MTRRs\n");
        return -1;
     }
 
@@ -607,7 +607,7 @@ static int init_mtrrs(struct v3_vm_info * vm, v3_cfg_tree_t * cfg, void ** priv_
     ret |= v3_hook_msr(vm, SMRR_PHYS_MASK, intel_smrr_mask_read, intel_smrr_mask_write, state);
 
     if (ret != 0) {
-       PrintError("Failed to hook all MTRR MSRs. Aborting...\n");
+       PrintError(vm, VCORE_NONE,"Failed to hook all MTRR MSRs. Aborting...\n");
        deinit_mtrrs(vm, state);
        return -1;
     }