All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] vmx-mach-to-phys.patch
@ 2005-04-30  1:40 Arun Sharma
  0 siblings, 0 replies; only message in thread
From: Arun Sharma @ 2005-04-30  1:40 UTC (permalink / raw)
  To: Ian Pratt, Keir Fraser; +Cc: xen-devel

VMX domains need to setup their machine to physical maps.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>

--- 1.21/tools/libxc/xc_vmx_build.c	2005-04-28 11:04:44 -07:00
+++ edited/tools/libxc/xc_vmx_build.c	2005-04-29 18:28:13 -07:00
@@ -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)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2005-04-30  1:40 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-04-30  1:40 [PATCH] vmx-mach-to-phys.patch Arun Sharma

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.