ia64/xen-unstable

changeset 17250:64b19db801b6

p2m: hap enabled/supported fix

Check for per domain hap_enabled rather than hvm_funcs hap_supported,
in case hap has been disabled.

Alleviates problem booting >=4Gig shadow HVM guests on PAE hypervisor
on AMD-V platforms.

Signed-off-by: Tom Woller <thomas.woller@amd.com>
author Keir Fraser <keir.fraser@citrix.com>
date Tue Mar 18 15:03:43 2008 +0000 (2008-03-18)
parents c978ecfc4f41
children b2a3fe7f5591
files xen/arch/x86/mm/p2m.c
line diff
     1.1 --- a/xen/arch/x86/mm/p2m.c	Tue Mar 18 15:00:33 2008 +0000
     1.2 +++ b/xen/arch/x86/mm/p2m.c	Tue Mar 18 15:03:43 2008 +0000
     1.3 @@ -229,7 +229,7 @@ set_p2m_entry(struct domain *d, unsigned
     1.4      if ( !p2m_next_level(d, &table_mfn, &table, &gfn_remainder, gfn,
     1.5                           L3_PAGETABLE_SHIFT - PAGE_SHIFT,
     1.6                           ((CONFIG_PAGING_LEVELS == 3)
     1.7 -                          ? (hvm_funcs.hap_supported ? 4 : 8)
     1.8 +                          ? (d->arch.hvm_domain.hap_enabled ? 4 : 8)
     1.9                            : L3_PAGETABLE_ENTRIES),
    1.10                           PGT_l2_page_table) )
    1.11          goto out;