aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2008-12-29 13:32:32 +0000
committerKeir Fraser <keir.fraser@citrix.com>2008-12-29 13:32:32 +0000
commit723c9ab1672104e9eed440b4204d7a195858b4e4 (patch)
tree46c83ab94a46826ca25fcd6fa15e0b51e56fbb62
parentcfbcb394f99384e1ca2d382d7ba52292b5af32ca (diff)
downloadxen-723c9ab1672104e9eed440b4204d7a195858b4e4.tar.gz
xen-723c9ab1672104e9eed440b4204d7a195858b4e4.tar.bz2
xen-723c9ab1672104e9eed440b4204d7a195858b4e4.zip
x86: Do not restrict 32-bit EPT to 4GB.
Signed-off-by: Xin, Xiaohui <xiaohui.xin@intel.com>
-rw-r--r--xen/arch/x86/mm/p2m.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/xen/arch/x86/mm/p2m.c b/xen/arch/x86/mm/p2m.c
index d32498092e..72f470dcf1 100644
--- a/xen/arch/x86/mm/p2m.c
+++ b/xen/arch/x86/mm/p2m.c
@@ -935,11 +935,12 @@ guest_physmap_add_entry(struct domain *d, unsigned long gfn,
#if CONFIG_PAGING_LEVELS == 3
/*
- * 32bit PAE nested paging does not support over 4GB guest due to
+ * 32bit AMD nested paging does not support over 4GB guest due to
* hardware translation limit. This limitation is checked by comparing
* gfn with 0xfffffUL.
*/
- if ( paging_mode_hap(d) && (gfn > 0xfffffUL) )
+ if ( paging_mode_hap(d) && (gfn > 0xfffffUL) &&
+ (boot_cpu_data.x86_vendor == X86_VENDOR_AMD) )
{
if ( !test_and_set_bool(d->arch.hvm_domain.svm.npt_4gb_warning) )
dprintk(XENLOG_WARNING, "Dom%d failed to populate memory beyond"