cannot get kqemu to load with kldload

Juergen Lock nox at jelal.kn-bremen.de
Sun Apr 12 18:10:35 UTC 2009


On Sun, Apr 12, 2009 at 07:35:35PM +0200, Roman Divacky wrote:
> On Sun, Apr 12, 2009 at 04:15:13PM +0200, Juergen Lock wrote:
> > In article <20090411192326.GA73059 at freebsd.org> you write:
> > >On Sat, Apr 11, 2009 at 02:43:52AM -0700, jtidwell wrote:
> > >> 
> > >> 
> > >> 
> > >> jtidwell wrote:
> > >> > 
> > >> > Greetings, qemu folk :)
> > >> > 
> > >> > I've recently upgraded my FreeBSD box from 6.2 to 7.2.  I'm trying to
> > >> > install qemo, but I keep getting stuck at the point where I load kqemu
> > >> > with kldload.  The module file exists in /boot/modules, but I get this
> > >> > error every time I try to load:
> > >> > 
> > >> > # kldload kqemu
> > >> > kldload: can't load kqemu: No such file or directory
> > >> > 
> > >> > # ls /boot/modules
> > >> > kqemu.ko        linker.hints    rt2500_sys.ko   rt61_sys.ko
> > >> > 
> > >> > 
> > >> 
> > >> I forgot to add, I get this error message on the console when i try to load
> > >> the module:
> > >> 
> > >> link_elf : symbol sched_lock undefined
> > >
> > >you use ULE, right? try switching to 4BSD... the .ko uses 4BSD specific things,
> > >no idea why
> > 
> > Hmm thats news to me, can you elaborate?  Is this something that only
> > affects head?
> > 
> >  Surprised...
> > 	Juergen (who has kqemu running fine with ule since 7.1 at least)
> 
> the sched_lock is 4BSD specific. I have no idea how it ended up being referenced
> by the kqemu.ko

Ah OK, but it is only used #if __FreeBSD_version < 700044 .  (which made
me suspect jtidwell's world and kernel are not in sync...)

 (kqemu does an mi_switch(SW_VOL, NULL) in its main loop if it receives
an irq, in order not to hog the cpu.)

 Cheers,
	Juergen


More information about the freebsd-emulation mailing list