Hi @all I want to load the precompile kqemu modul on my solaris 5.10 3/05, but this dont work. MAKE --- -bash-3.00# make install cp kqemu-solaris-i386 kqemu /usr/sbin/install -f /usr/kernel/drv -m 755 -u root -g sys kqemu new owner is root kqemu installed as /usr/kernel/drv/kqemu cp kqemu-solaris-x86_64 kqemu /usr/sbin/install -f /usr/kernel/drv/amd64 -m 755 -u root -g sys kqemu new owner is root kqemu installed as /usr/kernel/drv/amd64/kqemu rm kqemu /usr/sbin/install -f /usr/kernel/drv -m 644 -u root -g sys kqemu.conf new owner is root kqemu.conf installed as /usr/kernel/drv/kqemu.conf rm -f /dev/kqemu add_drv kqemu devfsadm: driver failed to attach: kqemu Warning: Driver (kqemu) successfully added to system but failed to attach ( cd /dev ; /usr/sbin/mknod kqemu c `/usr/bin/grep kqemu /etc/name_to_major | /usr/bin/awk ''{print $2}''` 0 ) -bash-3.00# --- DMESG (same output on boot screen) --- Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot load module ''kqemu'' --- If I try to load the modul manual, the command hangs and does''nt come back. Regards Soeren -- This message posted from opensolaris.org
Juergen Keil
2006-Dec-07 12:37 UTC
[qemu-discuss] cannot load kqemu modul on solaris 5.10 3/05
> I want to load the precompile kqemu modul on my solaris 5.10 3/05, but this dont work....> DMESG (same output on boot screen) > --- > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol > Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot load module ''kqemu''Yep, it uses some internal kernel subroutines that are not part of the official Solaris kernel device driver interfaces. The kqemu module only works on current opensolaris releases.
Ben Taylor
2007-Feb-08 20:00 UTC
[qemu-discuss] Re: cannot load kqemu modul on solaris 5.10 3/05
> > > > I want to load the precompile kqemu modul on my > solaris 5.10 3/05, but this dont work. > ... > > DMESG (same output on boot screen) > > --- > > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > kern.notice] /usr/kernel/drv/kqemu: undefined symbol > > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > kern.notice] /usr/kernel/drv/kqemu: undefined symbol > > Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 > kern.notice] WARNING: mod_load: cannot load module > ''kqemu'' > > Yep, it uses some internal kernel subroutines that > are not part of > the official Solaris kernel device driver interfaces. > The kqemu module only works on current opensolaris releases.With the open sourcing of the kqemu module, do you think there''s any chance of it being able to be adapted to Solaris 10? Ben -- This message posted from opensolaris.org
Joe Bonasera
2007-Feb-08 20:14 UTC
[qemu-discuss] Re: cannot load kqemu modul on solaris 5.10 3/05
It''s not something that Sun could ever release. As far as I know GPL''d code can not be linked into the kernel. The license is not compatible with the CDDL. That said, since the interface is now documented, someone could write an entirely new implementation of the kqemu interface from scratch for solaris and that would be usable. It must not have any code from any GPL''d file. Joe Ben Taylor wrote:>> >>> I want to load the precompile kqemu modul on my >> solaris 5.10 3/05, but this dont work. >> ... >>> DMESG (same output on boot screen) >>> --- >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 >> kern.notice] /usr/kernel/drv/kqemu: undefined symbol >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 >> kern.notice] /usr/kernel/drv/kqemu: undefined symbol >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 >> kern.notice] WARNING: mod_load: cannot load module >> ''kqemu'' >> >> Yep, it uses some internal kernel subroutines that >> are not part of >> the official Solaris kernel device driver interfaces. >> The kqemu module only works on current opensolaris releases. > > With the open sourcing of the kqemu module, do you think > there''s any chance of it being able to be adapted to > Solaris 10? > > Ben > -- > This message posted from opensolaris.org > _______________________________________________ > qemu-discuss mailing list > qemu-discuss at opensolaris.org > http://opensolaris.org/mailman/listinfo/qemu-discuss
Ben Taylor
2007-Feb-09 13:22 UTC
[qemu-discuss] Re: Re: cannot load kqemu modul on solaris 5.10 3/05
> > It''s not something that Sun could ever release. > As far as I know GPL''d code can not be linked into > the kernel. > The license is not compatible with the CDDL.That really wasn''t the intention of the question. The intention was to find out if there was a way to adapt the current kqemu GPL code to work in Solaris 10, since it currently only works on Solaris Express/OpenSolaris because of some kernel variables not currently present in Solaris 10. I thought because the code was open, someone might have an idea on how to modify the current kqemu module so it could work on Solaris 10.> That said, since the interface is now documented, > someone could write an entirely new implementation > of the kqemu interface from scratch for solaris and > that would be usable. It must not have any code from > any GPL''d file.I''m not sure why I''d really care about that, unless qemu is going to be shipping with Solaris.> > Joe > > Ben Taylor wrote: > >> > >>> I want to load the precompile kqemu modul on my > >> solaris 5.10 3/05, but this dont work. > >> ... > >>> DMESG (same output on boot screen) > >>> --- > >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > >> kern.notice] /usr/kernel/drv/kqemu: undefined > symbol > >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > >> kern.notice] /usr/kernel/drv/kqemu: undefined > symbol > >>> Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 > >> kern.notice] WARNING: mod_load: cannot load module > >> ''kqemu'' > >> > >> Yep, it uses some internal kernel subroutines that > >> are not part of > >> the official Solaris kernel device driver > interfaces. > >> The kqemu module only works on current > opensolaris releases. > > > > With the open sourcing of the kqemu module, do you > think > > there''s any chance of it being able to be adapted > to > > Solaris 10? > > > > Ben > > -- > > This message posted from opensolaris.org > > _______________________________________________ > > qemu-discuss mailing list > > qemu-discuss at opensolaris.org > > > http://opensolaris.org/mailman/listinfo/qemu-discuss > > _______________________________________________ > qemu-discuss mailing list > qemu-discuss at opensolaris.org > http://opensolaris.org/mailman/listinfo/qemu-discuss >-- This message posted from opensolaris.org
Ben Taylor
2007-Feb-10 11:42 UTC
[qemu-discuss] Re: cannot load kqemu modul on solaris 5.10 3/05
> > > > I want to load the precompile kqemu modul on my > solaris 5.10 3/05, but this dont work. > ... > > DMESG (same output on boot screen) > > --- > > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > kern.notice] /usr/kernel/drv/kqemu: undefined symbol > > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 > kern.notice] /usr/kernel/drv/kqemu: undefined symbol > > Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 > kern.notice] WARNING: mod_load: cannot load module > ''kqemu'' > > Yep, it uses some internal kernel subroutines that > are not part of > the official Solaris kernel device driver interfaces. > The kqemu module only works on current opensolaris releases.I can happily report that I have kqemu working in Solaris 10 U3. I''m going to post a patch to qemu-devel to allow folks to compile kqemu support for Solaris 10 and later. -- This message posted from opensolaris.org
Jürgen Keil
2007-Feb-13 19:02 UTC
[qemu-discuss] Re: cannot load kqemu modul on solaris 5.10 3/05
> I want to load the precompile kqemu modul on my > solaris 5.10 3/05, but this dont work. > > DMESG (same output on boot screen) > --- > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol > Dec 6 17:21:44 mrhbit18 genunix: [ID 819705 kern.notice] /usr/kernel/drv/kqemu: undefined symbol > Dec 6 17:21:44 mrhbit18 genunix: [ID 472681 kern.notice] WARNING: mod_load: cannot load module ''kqemu''Hmm, what are the undefined symbols that the kernel is complaining about? atomic_inc_uint and atomic_dec_uint ? These do not exist with S10FCS. The following change to the kqemu-solaris.c module seems to fix this problem: % gdiff ../kqemu-osol-1.3.0pre9/kqemu-solaris.c kqemu-solaris.c 54c54 < static uint_t kqemu_busy = 0; ---> static uint32_t kqemu_busy = 0;73c73 < static uint_t upages_locked = 0; ---> static uint32_t upages_locked = 0;102c102 < atomic_inc_uint(&upages_locked); ---> atomic_add_32(&upages_locked, 1);141c141 < atomic_inc_uint(&upages_locked); ---> atomic_add_32(&upages_locked, 1);158c158 < atomic_dec_uint(&upages_locked); ---> atomic_add_32(&upages_locked, -1);626c626 < atomic_inc_uint(&kqemu_busy); ---> atomic_add_32(&kqemu_busy, 1);642c642 < atomic_dec_uint(&kqemu_busy); ---> atomic_add_32(&kqemu_busy, -1);-- This message posted from opensolaris.org