}
/* Share the new status frames with the recipient domain */
for ( i = nr_status_frames(gt); i < req_status_frames; i++ )
- gnttab_create_status_page(d, gt, i);
+ share_xen_page_with_guest(virt_to_page(gt->status[i]), d, SHARE_rw);
gt->nr_status_frames = req_status_frames;
if ( get_page(pg, d) )
set_bit(_PGC_allocated, &pg->count_info);
while ( i-- )
- gnttab_create_status_page(d, gt, i);
+ share_xen_page_with_guest(virt_to_page(gt->status[i]),
+ d, SHARE_rw);
}
return -EBUSY;
}
/* Share the new shared frames with the recipient domain */
for ( i = nr_grant_frames(gt); i < req_nr_frames; i++ )
- gnttab_create_shared_page(d, gt, i);
+ share_xen_page_with_guest(virt_to_page(gt->shared_raw[i]), d, SHARE_rw);
gt->nr_grant_frames = req_nr_frames;
return 0;
: gnttab_shared_gmfn(NULL, gt, idx)); \
})
-#define gnttab_create_shared_page(d, t, i) \
- do { \
- share_xen_page_with_guest( \
- virt_to_page((char *)(t)->shared_raw[i]), d, SHARE_rw); \
- } while ( 0 )
-
-#define gnttab_create_status_page(d, t, i) \
- do { \
- share_xen_page_with_guest( \
- virt_to_page((char *)(t)->status[i]), d, SHARE_rw); \
- } while ( 0 )
-
#define gnttab_shared_gmfn(d, t, i) \
gfn_x(((i) >= nr_grant_frames(t)) ? INVALID_GFN : (t)->arch.shared_gfn[i])
VALID_M2P(gpfn_) ? _gfn(gpfn_) : INVALID_GFN; \
})
-#define gnttab_create_shared_page(d, t, i) \
- do { \
- share_xen_page_with_guest( \
- virt_to_page((char *)(t)->shared_raw[i]), d, SHARE_rw); \
- } while ( 0 )
-
-#define gnttab_create_status_page(d, t, i) \
- do { \
- share_xen_page_with_guest( \
- virt_to_page((char *)(t)->status[i]), d, SHARE_rw); \
- } while ( 0 )
-
-
#define gnttab_shared_mfn(t, i) \
((virt_to_maddr((t)->shared_raw[i]) >> PAGE_SHIFT))