Skip to contentSkip to conversation

Sharing a page between Dom0 and DomU

DISCUSSION anurag tripathi 1 participant 1 message Oct 22, 2008

lore
Share & tools
lore
#0 lore raw

I want to share a page between Dom0 and DomU, As per my understanding steps
should be as follows:-\
1)DomU get a page
2)DomU created a grant access reference and transmit the reference id to Dom0
3)Dom0 maps the page and do the memory acces
4)Dom0 unmap the page
In Dom0 we can map the page through following:-
uint32_t domid = ...;
uint32_t ref = ...;
int xcg = xc_gnttab_open();
void *my_addr = xc_gnttab_map_grant_ref(xcg, dom_id, ref, PROT_READ | PROT_WRITE);
How to grant the access to Dom0 from user space.
Regards,
Anurag Tripathi

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel