diff options
author | cwc22@centipede.cl.cam.ac.uk <cwc22@centipede.cl.cam.ac.uk> | 2005-04-04 20:22:17 +0000 |
---|---|---|
committer | cwc22@centipede.cl.cam.ac.uk <cwc22@centipede.cl.cam.ac.uk> | 2005-04-04 20:22:17 +0000 |
commit | d2781af07b4d42e5e02620c067c1da627baee567 (patch) | |
tree | 8f84b80c468ce8cf1ed6ce5f71d2242e7dff569f /xen/include/xen/grant_table.h | |
parent | 12af2ea309ea8f116483672d9900b863e75f0c7e (diff) | |
download | xen-d2781af07b4d42e5e02620c067c1da627baee567.tar.gz xen-d2781af07b4d42e5e02620c067c1da627baee567.tar.bz2 xen-d2781af07b4d42e5e02620c067c1da627baee567.zip |
bitkeeper revision 1.1236.56.1 (4251a1f9OIyZY2I2LqBlxl0mi64FkA)
Grant tables: substantially more robust.
Block front and back drivers: support for using grant tables for interdomain communication.
Diffstat (limited to 'xen/include/xen/grant_table.h')
-rw-r--r-- | xen/include/xen/grant_table.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h index b05ca702ce..f37d6d4e56 100644 --- a/xen/include/xen/grant_table.h +++ b/xen/include/xen/grant_table.h @@ -51,7 +51,10 @@ typedef struct { #define GNTPIN_devr_inc (1 << GNTPIN_devr_shift) #define GNTPIN_devr_mask (0xFFU << GNTPIN_devr_shift) -#define NR_GRANT_ENTRIES (PAGE_SIZE / sizeof(grant_entry_t)) +#define ORDER_GRANT_FRAMES 2 +#define NR_GRANT_FRAMES (1U << ORDER_GRANT_FRAMES) +#define NR_GRANT_ENTRIES (NR_GRANT_FRAMES * PAGE_SIZE / sizeof(grant_entry_t)) + /* * Tracks a mapping of another domain's grant reference. Each domain has a @@ -104,7 +107,7 @@ gnttab_prepare_for_transfer( /* Notify 'rd' of a completed transfer via an already-locked grant entry. */ void gnttab_notify_transfer( - struct domain *rd, grant_ref_t ref, unsigned long frame); + struct domain *rd, struct domain *ld, grant_ref_t ref, unsigned long frame); /* Pre-domain destruction release of granted device mappings of other domains.*/ void |