Skip to contentSkip to conversation

module in domU

DISCUSSION __gary 3 participants 3 messages May 25, 2011 – Jun 6, 2011

lore
Share & tools
lore

__gary

author
#0 lore raw

Hi, everyone.
I wrote a module using xen's grant mechanism to realize a share memory function between domU and dom0.
The module in domU side can be compiled but can not be inserted using "insmod".
The error message shows that some xen grant mechanism function is not defined.

my opinion
1) do i need a pv-domU kernel, then the xen grant mechanism is included?
2) compile the xen module into the kernel( please kindly tell me how to do this)

--
View this message in context: http://xen.1045712.n5.nabble.com/module-in-domU-tp4424653p4424653.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

#1 lore raw
Quoted 3 lines · __gary

Hi, everyone.
I wrote a module using xen's grant mechanism to realize a share memory function between domU and dom0.

Why not use the existing code? There is a gntdev and gntalloc in 2.6.39 you can use that will do this. Google for gntalloc.

Quoted 18 lines

The module in domU side can be compiled but can not be inserted using "insmod".
The error message shows that some xen grant mechanism function is not defined.

my opinion
1) do i need a pv-domU kernel, then the xen grant mechanism is included?
2) compile the xen module into the kernel( please kindly tell me how to do this)

--
View this message in context: http://xen.1045712.n5.nabble.com/module-in-domU-tp4424653p4424653.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

#2 lore raw
Quoted 7 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · __gary

Hi, everyone.
I wrote a module using xen's grant mechanism to realize a share memory function between domU and dom0.

Why not use the existing code? There is a gntdev and gntalloc in 2.6.39 you can use that will do this. Google for gntalloc.

gntdev and gntalloc are for userspace users, this question appears to be about domU kernel modules.

The question of whether gary's functionality belongs in kernel or userspace is a valid one, but not one we can answer with the info given.

Quoted 4 lines
Quoted 4 lines

The module in domU side can be compiled but can not be inserted using "insmod".
The error message shows that some xen grant mechanism function is not defined.

Which functions specifically are mentioned. Please read
http://wiki.xensource.com/xenwiki/AskingXenDevelQuestions.

Ian.

Quoted 19 lines
Quoted 6 lines

my opinion
1) do i need a pv-domU kernel, then the xen grant mechanism is included?
2) compile the xen module into the kernel( please kindly tell me how to do this)

Quoted 8 lines

--
View this message in context: http://xen.1045712.n5.nabble.com/module-in-domU-tp4424653p4424653.html
Sent from the Xen - Dev mailing list archive at Nabble.com.

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

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