aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/domain.h
diff options
context:
space:
mode:
authorTim Deegan <tim@xen.org>2011-11-10 11:12:35 +0000
committerTim Deegan <tim@xen.org>2011-11-10 11:12:35 +0000
commit94d9bf1a388ef3f1646431e7fac93652b5bd89e6 (patch)
tree322fa61d702b19122670a8a222cff237a20ad513 /xen/include/asm-x86/domain.h
parent3ceb653eb50aaabbe41c3b6d8bc017aa76b37b74 (diff)
downloadxen-94d9bf1a388ef3f1646431e7fac93652b5bd89e6.tar.gz
xen-94d9bf1a388ef3f1646431e7fac93652b5bd89e6.tar.bz2
xen-94d9bf1a388ef3f1646431e7fac93652b5bd89e6.zip
x86/mm: Enforce ordering constraints for the page alloc lock in the PoD code
The page alloc lock is sometimes used in the PoD code, with an explicit expectation of ordering. Use our ordering constructs in the mm layer to enforce this. The additional book-keeping variables are kept in the arch_domain sub-struct, as they are x86-specific to the whole domain. Signed-off-by: Andres Lagar-Cavilla <andres@lagarcavilla.org> Acked-by: Tim Deegan <tim@xen.org> Committed-by: Tim Deegan <tim@xen.org>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r--xen/include/asm-x86/domain.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h
index 3e4408a0b9..00bbaebfcc 100644
--- a/xen/include/asm-x86/domain.h
+++ b/xen/include/asm-x86/domain.h
@@ -269,6 +269,9 @@ struct arch_domain
struct paging_domain paging;
struct p2m_domain *p2m;
+ /* To enforce lock ordering in the pod code wrt the
+ * page_alloc lock */
+ int page_alloc_unlock_level;
/* nestedhvm: translate l2 guest physical to host physical */
struct p2m_domain *nested_p2m[MAX_NESTEDP2M];