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.


pci_front bugfix - do not propagate cmd reg write twice
[palacios.git] / palacios / src / palacios / mmu / vmm_shdw_pg_cache.c
index a3bc512..d2b6cce 100644 (file)
@@ -31,7 +31,7 @@
 
 #define V3_CACHED_PG 0x1
 
-#ifndef V3_CONFIG_DEBUG_SHDW_PG_CACHE
+#ifndef V3_CONFIG_DEBUG_SHADOW_PAGING_CACHE
 #undef PrintDebug
 #define PrintDebug(fmt, ...)
 #endif
@@ -391,7 +391,9 @@ static struct shdw_pg_data * create_shdw_pt(struct v3_vm_info * vm, addr_t gpa,
            return NULL;
        }
 
-       pg_data->hpa = (addr_t)V3_AllocPages(1);
+       pg_data->hpa = (addr_t)V3_AllocPagesExtended(1,PAGE_SIZE_4KB,-1,
+                                                    V3_ALLOC_PAGES_CONSTRAINT_4GB);
+
 
        if (!pg_data->hpa) {
            PrintError(vm, VCORE_NONE,  "Cannot allocate page for shadow page table\n");