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:14 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-10-07 07:46:14 +0100
commit1766cdc32b025ecea48d880370ddd78ece9bfc71 (patch)
treead9fdc3b765bd61c14cb67bae3bbb71e358f17f1 /xen/include/xen/grant_table.h
parent62d705d4a2764cf7d36300bcb4a26a806d0c6db1 (diff)
downloadxen-1766cdc32b025ecea48d880370ddd78ece9bfc71.tar.gz
xen-1766cdc32b025ecea48d880370ddd78ece9bfc71.tar.bz2
xen-1766cdc32b025ecea48d880370ddd78ece9bfc71.zip
Rename the struct grant_entry to struct grant_entry_v1, so that it
isn't in the way when we introduce struct grant_entry_v2. 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.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/xen/grant_table.h b/xen/include/xen/grant_table.h
index 27cc3fad91..c1ea9e0652 100644
--- a/xen/include/xen/grant_table.h
+++ b/xen/include/xen/grant_table.h
@@ -80,7 +80,7 @@ struct grant_table {
/* Table size. Number of frames shared with guest */
unsigned int nr_grant_frames;
/* Shared grant table (see include/public/grant_table.h). */
- struct grant_entry **shared;
+ struct grant_entry_v1 **shared;
/* Active grant table. */
struct active_grant_entry **active;
/* Mapping tracking table. */
@@ -117,7 +117,7 @@ static inline unsigned int nr_grant_frames(struct grant_table *gt)
/* Number of grant table entries. Caller must hold d's grant table lock. */
static inline unsigned int nr_grant_entries(struct grant_table *gt)
{
- return (nr_grant_frames(gt) << PAGE_SHIFT) / sizeof(grant_entry_t);
+ return (nr_grant_frames(gt) << PAGE_SHIFT) / sizeof(grant_entry_v1_t);
}
static inline unsigned int
@@ -126,7 +126,7 @@ num_act_frames_from_sha_frames(const unsigned int num)
/* How many frames are needed for the active grant table,
* given the size of the shared grant table? */
unsigned act_per_page = PAGE_SIZE / sizeof(struct active_grant_entry);
- unsigned sha_per_page = PAGE_SIZE / sizeof(grant_entry_t);
+ unsigned sha_per_page = PAGE_SIZE / sizeof(grant_entry_v1_t);
unsigned num_sha_entries = num * sha_per_page;
unsigned num_act_frames =
(num_sha_entries + (act_per_page-1)) / act_per_page;