All of lore.kernel.org
 help / color / mirror / Atom feed
* HELP! how to export symbols in DomU?
@ 2004-12-07 23:13 Xin Zhao
  2004-12-08  0:35 ` Keir Fraser
  0 siblings, 1 reply; 5+ messages in thread
From: Xin Zhao @ 2004-12-07 23:13 UTC (permalink / raw)
  To: xen-devel

I asked this question several days ago. I am trying to export function
"ctrl_if_send_message_block" to both Dom0 and DomU(linux24). I did
"EXPORT_SYMBOL" in i386_ksyms.c" and compile the kernel with "make ARCH=xen linux24", then
"make install". Now in Dom0, the symbol is exported successfully. I can
insmod my kernel module.  However, in DomU, insmod always complaint that
"unresolved symbol". :(

Any ideas? HELP, PLEASE!

-x


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HELP! how to export symbols in DomU?
  2004-12-07 23:13 HELP! how to export symbols in DomU? Xin Zhao
@ 2004-12-08  0:35 ` Keir Fraser
  2004-12-08  1:40   ` Xin Zhao
  0 siblings, 1 reply; 5+ messages in thread
From: Keir Fraser @ 2004-12-08  0:35 UTC (permalink / raw)
  To: Xin Zhao; +Cc: xen-devel

> I asked this question several days ago. I am trying to export function
> "ctrl_if_send_message_block" to both Dom0 and DomU(linux24). I did
> "EXPORT_SYMBOL" in i386_ksyms.c" and compile the kernel with "make ARCH=xen linux24", then
> "make install". Now in Dom0, the symbol is exported successfully. I can
> insmod my kernel module.  However, in DomU, insmod always complaint that
> "unresolved symbol". :(
> 
> Any ideas? HELP, PLEASE!

Assuming that function and that EXPORT_SYMBOL are both compiled in an
unprivileged Linux build (which I think they should be), I don't see
that there ought to be any problem doing the insmod in -xenU.

 -- Keir


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HELP! how to export symbols in DomU?
  2004-12-08  0:35 ` Keir Fraser
@ 2004-12-08  1:40   ` Xin Zhao
  2004-12-08  2:15     ` Martin Maney
  0 siblings, 1 reply; 5+ messages in thread
From: Xin Zhao @ 2004-12-08  1:40 UTC (permalink / raw)
  To: Keir Fraser; +Cc: xen-devel

Thanks for your reply. can you clarify "both compiled in an
 unprivileged Linux build"? How to compile it? I compiled it using "make
ARCH=xen linux24" and "make install" under the $XENROOT. Is that right way
to compile it? Actually the weird thing is that the exported symbol can be
seen in xen0, but not xenU.  So, can you put a little more details about
the procedure? I guess some other people may also run into the same
problem.

-x


On Wed, 8 Dec 2004, Keir Fraser wrote:

> > I asked this question several days ago. I am trying to export function
> > "ctrl_if_send_message_block" to both Dom0 and DomU(linux24). I did
> > "EXPORT_SYMBOL" in i386_ksyms.c" and compile the kernel with "make ARCH=xen linux24", then
> > "make install". Now in Dom0, the symbol is exported successfully. I can
> > insmod my kernel module.  However, in DomU, insmod always complaint that
> > "unresolved symbol". :(
> >
> > Any ideas? HELP, PLEASE!
>
> Assuming that function and that EXPORT_SYMBOL are both compiled in an
> unprivileged Linux build (which I think they should be), I don't see
> that there ought to be any problem doing the insmod in -xenU.
>
>  -- Keir
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HELP! how to export symbols in DomU?
  2004-12-08  1:40   ` Xin Zhao
@ 2004-12-08  2:15     ` Martin Maney
  2004-12-08  2:32       ` Xin Zhao
  0 siblings, 1 reply; 5+ messages in thread
From: Martin Maney @ 2004-12-08  2:15 UTC (permalink / raw)
  To: xen-devel

On Tue, Dec 07, 2004 at 08:40:28PM -0500, Xin Zhao wrote:
>  unprivileged Linux build"? How to compile it? I compiled it using "make
> ARCH=xen linux24" and "make install" under the $XENROOT. Is that right way
> to compile it? Actually the weird thing is that the exported symbol can be
> seen in xen0, but not xenU.

> > > I asked this question several days ago. I am trying to export function
> > > "ctrl_if_send_message_block" to both Dom0 and DomU(linux24). I did
> > > "EXPORT_SYMBOL" in i386_ksyms.c" and compile the kernel with "make ARCH=xen linux24", then

It sounds as though perhaps you patched the source in the -xen0 tree
but not that in the -xenU tree?

-- 
If nature has made any one thing less susceptible than all others of
exclusive property, it is the action of the thinking power called an
idea, which an individual may exclusively possess as long as he keeps
it to himself; but the moment it is divulged, it forces itself into
the possession of every one, and the receiver cannot dispossess
himself of it.  -- Thomas Jefferson



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: HELP! how to export symbols in DomU?
  2004-12-08  2:15     ` Martin Maney
@ 2004-12-08  2:32       ` Xin Zhao
  0 siblings, 0 replies; 5+ messages in thread
From: Xin Zhao @ 2004-12-08  2:32 UTC (permalink / raw)
  To: Martin Maney; +Cc: xen-devel

Thanks a lot for your reply.

well. I essentially changed the source code i386_ksyms.c at
2.4.27-xen-sparse, but noticed that the files with the same name in both
xen0 and xenU are actually links to that file. So it looks like the source
code should be changed. I also checked the Makefile, it is a link to
2.4.27-sparse too. Is there any other files that I should change?

Thanks,
-x

On Tue, 7 Dec 2004, Martin Maney wrote:

> On Tue, Dec 07, 2004 at 08:40:28PM -0500, Xin Zhao wrote:
> >  unprivileged Linux build"? How to compile it? I compiled it using "make
> > ARCH=xen linux24" and "make install" under the $XENROOT. Is that right way
> > to compile it? Actually the weird thing is that the exported symbol can be
> > seen in xen0, but not xenU.
>
> > > > I asked this question several days ago. I am trying to export function
> > > > "ctrl_if_send_message_block" to both Dom0 and DomU(linux24). I did
> > > > "EXPORT_SYMBOL" in i386_ksyms.c" and compile the kernel with "make ARCH=xen linux24", then
>
> It sounds as though perhaps you patched the source in the -xen0 tree
> but not that in the -xenU tree?
>
> --
> If nature has made any one thing less susceptible than all others of
> exclusive property, it is the action of the thinking power called an
> idea, which an individual may exclusively possess as long as he keeps
> it to himself; but the moment it is divulged, it forces itself into
> the possession of every one, and the receiver cannot dispossess
> himself of it.  -- Thomas Jefferson
>
>
>
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real users.
> Discover which products truly live up to the hype. Start reading now.
> http://productguide.itmanagersjournal.com/
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/xen-devel
>


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2004-12-08  2:32 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-12-07 23:13 HELP! how to export symbols in DomU? Xin Zhao
2004-12-08  0:35 ` Keir Fraser
2004-12-08  1:40   ` Xin Zhao
2004-12-08  2:15     ` Martin Maney
2004-12-08  2:32       ` Xin Zhao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.