Skip to contentSkip to conversation

sharing memory between dom0 and domU

DISCUSSION eli 2 participants 4 messages Jun 26, 2011 – Jun 27, 2011

lore
Share & tools
lore
#1 lore raw
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)
author
#2 lore raw
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

#3 lore raw
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)