diff options
author | Tim Deegan <tim@xen.org> | 2013-03-07 12:49:52 +0000 |
---|---|---|
committer | Tim Deegan <tim@xen.org> | 2013-03-14 10:33:46 +0000 |
commit | 97724f16028522c07f8251d94b6cca4552391fe4 (patch) | |
tree | 4a95f7340092ee79ee8921fa18d4d54a071c2264 /xen/include/asm-x86/domain.h | |
parent | e8c211d80c9d80d4eef09c5d1121f7ef17b61f73 (diff) | |
download | xen-97724f16028522c07f8251d94b6cca4552391fe4.tar.gz xen-97724f16028522c07f8251d94b6cca4552391fe4.tar.bz2 xen-97724f16028522c07f8251d94b6cca4552391fe4.zip |
x86/mm: warn if we ever run out of shadow/hap pool for p2m/lgd ops.
Even if the error propagates up through the p2m ops to the caller,
it'll look like ENOMEM, which won't be obviously a shadow-pool problem.
Warn on the console, once per domain.
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Tim Deegan <tim@xen.org>
Acked-by: Jan Beulich <jbeulich@suse.com>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r-- | xen/include/asm-x86/domain.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h index fd9fa0f231..6f9744a58f 100644 --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -190,6 +190,8 @@ struct paging_domain { * (used by p2m and log-dirty code for their tries) */ struct page_info * (*alloc_page)(struct domain *d); void (*free_page)(struct domain *d, struct page_info *pg); + /* Has that pool ever run out of memory? */ + bool_t p2m_alloc_failed; }; struct paging_vcpu { |