15 lines
556 B
Diff
15 lines
556 B
Diff
Index: xen-3.2-testing/xen/arch/x86/mm/p2m.c
|
|
===================================================================
|
|
--- xen-3.2-testing.orig/xen/arch/x86/mm/p2m.c
|
|
+++ xen-3.2-testing/xen/arch/x86/mm/p2m.c
|
|
@@ -281,7 +281,8 @@ void p2m_init(struct domain *d)
|
|
d->arch.p2m.get_entry_fast = p2m_gfn_to_mfn_fast;
|
|
d->arch.p2m.change_entry_type_global = p2m_change_type_global;
|
|
|
|
- if ( is_hvm_domain(d) )
|
|
+ if ( is_hvm_domain(d) && hvm_funcs.hap_supported &&
|
|
+ (boot_cpu_data.x86_vendor == X86_VENDOR_INTEL) )
|
|
hvm_p2m_init(d);
|
|
}
|
|
|