[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Minios-devel] Sharing pages between two mini-os
Ariani A, on lun. 01 mai 2017 17:57:31 -0400, wrote: > The mini-os files are complicated, I just want to know the minimal functions > necessary, could you please select one of the examples and let me know which > parts/steps are the necessary ones? See for instance blkfront.c: dev->ring_ref = gnttab_grant_access(dev->dom,virt_to_mfn(s),0); it then writes it to xenstore: err = xenbus_printf(xbt, nodename, "ring-ref","%u", dev->ring_ref); and at the end, ends access: gnttab_end_access(dev->ring_ref); and for the mapping part, see tpmback.c: page = gntmap_map_grant_refs(>pmdev.map, 1, &domid, 0, &ringref, PROT_READ | PROT_WRITE) and gntmap_munmap(>pmdev.map, (unsigned long)tpmif->page, 1); Samuel _______________________________________________ Minios-devel mailing list Minios-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/cgi-bin/mailman/listinfo/minios-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |