sharing memory between dom0 and domU
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.
Quoted 3 lines · eli
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.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)
Quoted 4 lines · 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
[email protected]
http://lists.xensource.com/xen-devel
Quoted 8 lines · eli
Quoted 4 lines · 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.
Signature · 3 lines
Tim Deegan <[email protected]> Principal Software Engineer, Xen Platform Team Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)