ia64/xen-unstable

changeset 4718:c36d6a98229a

bitkeeper revision 1.1389.1.15 (4273436eypuqO7C1_MKQjhBV2kylZw)

[PATCH] vmx-mach-to-phys.patch

VMX domains need to setup their machine to physical maps.

Signed-off-by: Arun Sharma <arun.sharma@intel.com>
author arun.sharma@intel.com[kaf24]
date Sat Apr 30 08:35:58 2005 +0000 (2005-04-30)
parents fc628e971b0a
children 70c0c5349780
files tools/libxc/xc_vmx_build.c
line diff
     1.1 --- a/tools/libxc/xc_vmx_build.c	Sat Apr 30 08:35:33 2005 +0000
     1.2 +++ b/tools/libxc/xc_vmx_build.c	Sat Apr 30 08:35:58 2005 +0000
     1.3 @@ -313,6 +313,16 @@ static int setup_guest(int xc_handle,
     1.4      munmap(vl1tab, PAGE_SIZE);
     1.5      munmap(vl2tab, PAGE_SIZE);
     1.6  
     1.7 +    /* Write the machine->phys table entries. */
     1.8 +    for ( count = 0; count < nr_pages; count++ )
     1.9 +    {
    1.10 +        if ( add_mmu_update(xc_handle, mmu,
    1.11 +                            (page_array[count] << PAGE_SHIFT) | 
    1.12 +                            MMU_MACHPHYS_UPDATE, count) )
    1.13 +	    goto error_out;
    1.14 +    }
    1.15 +    
    1.16 +
    1.17      if ((boot_paramsp = xc_map_foreign_range(
    1.18  		xc_handle, dom, PAGE_SIZE, PROT_READ|PROT_WRITE,
    1.19  		page_array[(vboot_params_start-dsi.v_start)>>PAGE_SHIFT])) == 0)