Define gnttab_shared_gpfn() for use in common code.

Signed-off-by: Keir Fraser <keir@xensource.com>
This commit is contained in:
kaf24@firebug.cl.cam.ac.uk committed 2006-02-01 00:48:17 +01:00
1 parent 724da66465
commit 5baafc8653
3 files changed
+7 -4

No files matched your search

+3 -3
View File
@@ -481,7 +481,7 @@ gnttab_setup_table(
gnttab_setup_table_t op;
struct domain *d;
int i;
unsigned long mfn;
unsigned long gpfn;
if ( count != 1 )
return -EINVAL;
@@ -523,8 +523,8 @@ gnttab_setup_table(
(void)put_user(GNTST_okay, &uop->status);
for ( i = 0; i < op.nr_frames; i++ )
{
mfn = __mfn_to_gpfn(d, gnttab_shared_mfn(d, d->grant_table, i));
(void)put_user(mfn, &op.frame_list[i]);
gpfn = gnttab_shared_gpfn(d, d->grant_table, i);
(void)put_user(gpfn, &op.frame_list[i]);
}
}
+1 -1
View File
@@ -14,7 +14,7 @@
#define gnttab_create_shared_mfn(d, t, i) ((void)0)
#define gnttab_shared_mfn(d, t, i) \
#define gnttab_shared_gpfn(d, t, i) \
( ((d) == dom0) ? \
((virt_to_phys((t)->shared) >> PAGE_SHIFT) + (i)) : \
(map_domain_page((d), 1UL<<40, virt_to_phys((t)->shared)), \
+3
View File
@@ -33,6 +33,9 @@ int steal_page_for_grant_transfer(
#define gnttab_shared_mfn(d, t, i) \
((virt_to_phys((t)->shared) >> PAGE_SHIFT) + (i))
#define gnttab_shared_gpfn(d, t, i) \
(__mfn_to_gpfn(d, gnttab_shared_mfn(d, t, i)))
#define gnttab_log_dirty(d, f) mark_dirty((d), (f))
#endif /* __ASM_GRANT_TABLE_H__ */
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.