direct-io.hg

changeset 11412:5fa9b746d24f

[XEN] Fix mapping of p2m into monitor tables for external-mode guests.
The previous code could map frame zero into the P2M table on PAE hosts.
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
author Tim Deegan <tim.deegan@xensource.com>
date Sat Sep 02 12:11:54 2006 +0100 (2006-09-02)
parents 470666ea973d
children b219ea61a357
files xen/arch/x86/mm/shadow/multi.c
line diff
     1.1 --- a/xen/arch/x86/mm/shadow/multi.c	Fri Sep 01 13:24:51 2006 -0700
     1.2 +++ b/xen/arch/x86/mm/shadow/multi.c	Sat Sep 02 12:11:54 2006 +0100
     1.3 @@ -1792,8 +1792,10 @@ void sh_install_xen_entries_in_l2h(struc
     1.4          for ( i = 0; i < MACHPHYS_MBYTES>>1; i++ )
     1.5          {
     1.6              sl2e[shadow_l2_table_offset(RO_MPT_VIRT_START) + i] =
     1.7 -                shadow_l2e_from_mfn(_mfn(l3e_get_pfn(p2m[i])),
     1.8 -                                    __PAGE_HYPERVISOR);
     1.9 +                (l3e_get_flags(p2m[i]) & _PAGE_PRESENT)
    1.10 +                ? shadow_l2e_from_mfn(_mfn(l3e_get_pfn(p2m[i])),
    1.11 +                                      __PAGE_HYPERVISOR)
    1.12 +                : shadow_l2e_empty();
    1.13          }
    1.14          sh_unmap_domain_page(p2m);
    1.15      }