* module in domU
@ 2011-05-25 8:57 __gary
2011-06-06 14:51 ` Konrad Rzeszutek Wilk
0 siblings, 1 reply; 3+ messages in thread
From: __gary @ 2011-05-25 8:57 UTC (permalink / raw)
To: xen-devel
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: module in domU
2011-05-25 8:57 module in domU __gary
@ 2011-06-06 14:51 ` Konrad Rzeszutek Wilk
2011-06-06 15:04 ` Ian Campbell
0 siblings, 1 reply; 3+ messages in thread
From: Konrad Rzeszutek Wilk @ 2011-06-06 14:51 UTC (permalink / raw)
To: __gary; +Cc: xen-devel
On Wed, May 25, 2011 at 01:57:04AM -0700, __gary wrote:
> 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.
> 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
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: module in domU
2011-06-06 14:51 ` Konrad Rzeszutek Wilk
@ 2011-06-06 15:04 ` Ian Campbell
0 siblings, 0 replies; 3+ messages in thread
From: Ian Campbell @ 2011-06-06 15:04 UTC (permalink / raw)
To: Konrad Rzeszutek Wilk; +Cc: xen-devel@lists.xensource.com, __gary
On Mon, 2011-06-06 at 15:51 +0100, Konrad Rzeszutek Wilk wrote:
> On Wed, May 25, 2011 at 01:57:04AM -0700, __gary wrote:
> > 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.
> > 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.
> >
> > 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
> > Xen-devel@lists.xensource.com
> > http://lists.xensource.com/xen-devel
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xensource.com
> http://lists.xensource.com/xen-devel
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-06-06 15:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 8:57 module in domU __gary
2011-06-06 14:51 ` Konrad Rzeszutek Wilk
2011-06-06 15:04 ` Ian Campbell
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).