Hi, I need a way to allocate pages in dom0 and be able to map them to a specific domU instance. Alternatively, I could allocate the pages in domU and dma map them to a pci device attached to dom0. Is that possible to do? -- View this message in context: http://xen.1045712.n5.nabble.com/sharing-memory-between-dom0-and-domU-tp4525597p4525597.html Sent from the Xen - Dev mailing list archive at Nabble.com. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 04:46 -0700 on 26 Jun (1309063611), eli wrote:> Hi, > I need a way to allocate pages in dom0 and be able to map them to a specific > domU instance.What you need is the grant-table mechanism; I believe that using the gntdev code you can even do it from user-space. Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
On Mon, Jun 27, 2011 at 01:51:10AM -0700, Tim Deegan-4 [via Xen] wrote:> > What you need is the grant-table mechanism; I believe that using the > gntdev code you can even do it from user-space. >Thanks Tim. I only need this for kernel space. Does it mean that I don''t need "gntdev" for that? Can you give a pointer to some usage case or just tell what APIs are involved? -- View this message in context: http://xen.1045712.n5.nabble.com/sharing-memory-between-dom0-and-domU-tp4525597p4527827.html Sent from the Xen - Dev mailing list archive at Nabble.com. _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
At 03:54 -0700 on 27 Jun (1309146866), eli wrote:> On Mon, Jun 27, 2011 at 01:51:10AM -0700, Tim Deegan-4 [via Xen] wrote: > > > > What you need is the grant-table mechanism; I believe that using the > > gntdev code you can even do it from user-space. > > > Thanks Tim. I only need this for kernel space. Does it mean that I > don''t need "gntdev" for that? Can you give a pointer to some usage > case or just tell what APIs are involved?If you''re in linux, have a look at the blkfront and blkback drivers for examples of how to use them. The linux interface is in include/xen/grant_table.h. Tim. -- Tim Deegan <Tim.Deegan@citrix.com> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG) _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel