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/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/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", thenIt 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
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/ _______________________________________________ Xen-devel mailing list Xen-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xen-devel