]> xenbits.xensource.com Git - xen.git/commitdiff
p2m: hap enabled/supported fix
authorKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 15:03:43 +0000 (15:03 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Tue, 18 Mar 2008 15:03:43 +0000 (15:03 +0000)
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>
xen/arch/x86/mm/p2m.c

index e37b9508e339348299e30b7bbdfcbf937acfd0c1..e8298fb3bd0079d10250d413ca42aa4deeac46ff 100644 (file)
@@ -229,7 +229,7 @@ set_p2m_entry(struct domain *d, unsigned long gfn, mfn_t mfn, p2m_type_t p2mt)
     if ( !p2m_next_level(d, &table_mfn, &table, &gfn_remainder, gfn,
                          L3_PAGETABLE_SHIFT - PAGE_SHIFT,
                          ((CONFIG_PAGING_LEVELS == 3)
-                          ? (hvm_funcs.hap_supported ? 4 : 8)
+                          ? (d->arch.hvm_domain.hap_enabled ? 4 : 8)
                           : L3_PAGETABLE_ENTRIES),
                          PGT_l2_page_table) )
         goto out;