cannot get kqemu to load with kldload
Bakul Shah
bakul at bitblocks.com
Sun Apr 12 19:26:05 UTC 2009
On Sun, 12 Apr 2009 20:56:24 +0200 Juergen Lock <nox at jelal.kn-bremen.de> wrote:
> On Sun, Apr 12, 2009 at 11:29:39AM -0700, Bakul Shah wrote:
> >
> > But this brings up another problem with kqemu: if you are
> > using SCHED_4BSD with 7.x or current, kqemu is not guaranteed
> > to work.
>
> Oh, so the code it then uses in kqemu_schedule() is ule only?
> Does the old scheduler still use sched_lock?
>
> [...]
> struct thread *td = curthread;
> thread_lock(td);
> mi_switch(SW_VOL, NULL);
> thread_unlock(td);
> [...]
You'd have to ask a scheduling expert but it appears that
4BSD sticks sched_lock in thread lock so it should just work
(checked only in -current). So I take back my complaint :-)
More information about the freebsd-emulation
mailing list