aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/mm/hap/hap.c
diff options
context:
space:
mode:
Diffstat (limited to 'xen/arch/x86/mm/hap/hap.c')
-rw-r--r--xen/arch/x86/mm/hap/hap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/xen/arch/x86/mm/hap/hap.c b/xen/arch/x86/mm/hap/hap.c
index 055833d349..bff05d97a3 100644
--- a/xen/arch/x86/mm/hap/hap.c
+++ b/xen/arch/x86/mm/hap/hap.c
@@ -258,6 +258,12 @@ static struct page_info *hap_alloc_p2m_page(struct domain *d)
page_set_owner(pg, d);
pg->count_info |= 1;
}
+ else if ( !d->arch.paging.p2m_alloc_failed )
+ {
+ d->arch.paging.p2m_alloc_failed = 1;
+ dprintk(XENLOG_ERR, "d%i failed to allocate from HAP pool",
+ d->domain_id);
+ }
paging_unlock(d);
return pg;