diff options
author | Jan Beulich <jbeulich@suse.com> | 2013-02-08 11:06:04 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2013-02-08 11:06:04 +0100 |
commit | f1bde87fc08ce8c818a1640a8fe4765d48923091 (patch) | |
tree | 0d70fa9de1bdfb1701df321df7dd05b13e46ce51 /xen/arch/x86/domain_page.c | |
parent | ed759d20249197cf87b338ff0ed328052ca3b8e7 (diff) | |
download | xen-f1bde87fc08ce8c818a1640a8fe4765d48923091.tar.gz xen-f1bde87fc08ce8c818a1640a8fe4765d48923091.tar.bz2 xen-f1bde87fc08ce8c818a1640a8fe4765d48923091.zip |
x86: debugging code for testing 16Tb support on smaller memory systems
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/domain_page.c')
-rw-r--r-- | xen/arch/x86/domain_page.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/arch/x86/domain_page.c b/xen/arch/x86/domain_page.c index 1beae8c160..acc9486981 100644 --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -66,8 +66,10 @@ void *map_domain_page(unsigned long mfn) struct mapcache_vcpu *vcache; struct vcpu_maphash_entry *hashent; +#ifdef NDEBUG if ( mfn <= PFN_DOWN(__pa(HYPERVISOR_VIRT_END - 1)) ) return mfn_to_virt(mfn); +#endif v = mapcache_current_vcpu(); if ( !v || is_hvm_vcpu(v) ) @@ -249,8 +251,10 @@ int mapcache_domain_init(struct domain *d) if ( is_hvm_domain(d) || is_idle_domain(d) ) return 0; +#ifdef NDEBUG if ( !mem_hotplug && max_page <= PFN_DOWN(__pa(HYPERVISOR_VIRT_END - 1)) ) return 0; +#endif dcache->l1tab = xzalloc_array(l1_pgentry_t *, MAPCACHE_L2_ENTRIES + 1); d->arch.perdomain_l2_pg[MAPCACHE_SLOT] = alloc_domheap_page(NULL, memf); @@ -418,8 +422,10 @@ void *map_domain_page_global(unsigned long mfn) ASSERT(!in_irq() && local_irq_is_enabled()); +#ifdef NDEBUG if ( mfn <= PFN_DOWN(__pa(HYPERVISOR_VIRT_END - 1)) ) return mfn_to_virt(mfn); +#endif spin_lock(&globalmap_lock); |