Skip to contentSkip to conversation

vmx-mach-to-phys.patch

PATCH New Arun Sharma 1 participant 1 message Apr 30, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 vmx-mach-to-phys.patch

VMX domains need to setup their machine to physical maps.

tools/libxc/xc_vmx_build.c +10 -0
@@ -313,6 +313,16 @@
     munmap(vl1tab, PAGE_SIZE);
     munmap(vl2tab, PAGE_SIZE);
 
+    /* Write the machine->phys table entries. */
+    for ( count = 0; count < nr_pages; count++ )
+    {
+        if ( add_mmu_update(xc_handle, mmu,
+                            (page_array[count] << PAGE_SHIFT) | 
+                            MMU_MACHPHYS_UPDATE, count) )
+	    goto error_out;
+    }
+    
+
     if ((boot_paramsp = xc_map_foreign_range(
 		xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE,
 		page_array[(vboot_params_start-dsi.v_start)>>PAGE_SHIFT])) == 0)