aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/public/xen.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-12-17 06:27:56 +0000
committerKeir Fraser <keir.fraser@citrix.com>2009-12-17 06:27:56 +0000
commit38edca187daf8961d574f0e9cec8d775f6271e35 (patch)
treeb68271b7a481e18989fd3c769a91cd48139309ee /xen/include/public/xen.h
parent287d07f6a7b84d9caf6e734f987a02ef5de7561c (diff)
downloadxen-38edca187daf8961d574f0e9cec8d775f6271e35.tar.gz
xen-38edca187daf8961d574f0e9cec8d775f6271e35.tar.bz2
xen-38edca187daf8961d574f0e9cec8d775f6271e35.zip
This patch defines a new PGT type called PGT_shared_page and a new synthetic
domain called 'dom_cow'. In order to share a page, the type needs to be changed to PGT_shared_page and the owner to dom_dow. Only pages with PGT_none, and no type count are allowed to become sharable. Conversly, sharable pages can only be made 'private' if type count equals one. page_make_sharable() and page_make_private() handle these transitions. Signed-off-by: Grzegorz Milos <Grzegorz.Milos@citrix.com>
Diffstat (limited to 'xen/include/public/xen.h')
-rw-r--r--xen/include/public/xen.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/xen/include/public/xen.h b/xen/include/public/xen.h
index 22161ae769..1a5e3e840c 100644
--- a/xen/include/public/xen.h
+++ b/xen/include/public/xen.h
@@ -366,6 +366,10 @@ typedef uint16_t domid_t;
*/
#define DOMID_XEN (0x7FF2U)
+/*
+ * DOMID_COW is used as the owner of sharable pages */
+#define DOMID_COW (0x7FF3U)
+
/* DOMID_INVALID is used to identity invalid domid */
#define DOMID_INVALID (0x7FFFU)