aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/xen/grant_table.h
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-10-07 07:46:59 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-07 07:46:59 +0100
commitb545941b663862973bcdf2c089e999c7a42cdd7c (patch)
tree3825103ae16cf737502caf498fd21ff565253629 /xen/include/xen/grant_table.h
parenta98dc13703e091bb94e86a537d5c7a0ef9ffb62f (diff)
downloadxen-b545941b663862973bcdf2c089e999c7a42cdd7c.tar.gz
xen-b545941b663862973bcdf2c089e999c7a42cdd7c.tar.bz2
xen-b545941b663862973bcdf2c089e999c7a42cdd7c.zip
Implement sub-page grant support.
Signed-off-by: Steven Smith <steven.smith@citrix.com>
Diffstat (limited to 'xen/include/xen/grant_table.h')
-rw-r--r--xen/include/xen/grant_table.h11
1 files changed, 8 insertions, 3 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h
index 5eb44874d5..f94bfb1b0b 100644
--- a/xen/include/xen/grant_table.h
+++ b/xen/include/xen/grant_table.h
@@ -30,10 +30,15 @@
/* Active grant entry - used for shadowing GTF_permit_access grants. */
struct active_grant_entry {
- u32 pin; /* Reference count information. */
- domid_t domid; /* Domain being granted access. */
+ u32 pin; /* Reference count information. */
+ domid_t domid; /* Domain being granted access. */
+ unsigned long frame; /* Frame being granted. */
unsigned long gfn; /* Guest's idea of the frame being granted. */
- unsigned long frame; /* Frame being granted. */
+ unsigned is_sub_page:1; /* True if this is a sub-page grant. */
+ unsigned start:15; /* For sub-page grants, the start offset
+ in the page. */
+ unsigned length:16; /* For sub-page grants, the length of the
+ grant. */
};
/* Count of writable host-CPU mappings. */