Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142746 - KQemu not working but loaded?
Summary: KQemu not working but loaded?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major
Assignee: Luca Barbato
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-08-03 21:59 UTC by Roger
Modified: 2006-08-21 18:41 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger 2006-08-03 21:59:58 UTC
I'm showing kqemu is loaded but not used:

$ lsmod |grep kqemu
kqemu                 106372  0

# ls -alh /dev/kqemu 
crw-rw-rw- 1 root root 250, 0 Aug  3 21:04 /dev/kqemu

(Just for reference, I've also tried recreating the device with " mknod --mode=0666 /dev/kqemu c 250 0 " to no avail of the modules being shown used.)


Maybe it's the versions I've unmasked?

# qpkg -I -v |grep qemu
app-emulation/qemu-0.8.1 *
app-emulation/qemu-softmmu-0.8.1-r1 *
app-emulation/qemu-user-0.8.1 *
app-emulation/kqemu-1.3.0_pre7 *


(On a side note, noticing a IUSE variable in qemu-softmmu referencing qemu-fast?)

I'm assuming since it's taking forever for windowsupdate to commence and sometimes long load times, it *must* be because kqemu is not working as planned?
Comment 1 Roger 2006-08-03 23:20:17 UTC
Never mind.  I've removed all my unmasked *qemu* packages in /etc/portage/package.keywords and simply did:

emerge kqemu

(Allowing kqemu resolve any deps.)

Sorry.  Dumb_Qemu_User here!

I'm now seeing after lsmod:
kqemu                  39816  2


Now, from here, I'll unmask and upgrade to see if it breaks, but I'll bet I was using the wrong qemu package for kqemu!!!
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-08-04 00:59:01 UTC
Those versions indeed don't mix nicely.
Comment 3 Roger 2006-08-04 02:07:48 UTC
So far, kqemu will appear to be being used from what lsmod says with the following versions:

app-emulation/kqemu-0.7.2 *
app-emulation/qemu-softmmu-0.8.0 *

However, as you've said, trying to use app-emulation/qemu-softmmu-0.8.2 with app-emulation/kqemu-1.3.0_pre7.  

Out of curiousity, which are the highest versions that will match and work?
Comment 4 Roger 2006-08-04 21:28:47 UTC
I've done some further research with app-emulation/kqemu && app-emulation/qemu-softmmu, and the following version work:

app-emulation/kqemu-0.7.2
app-emulation/qemu-softmmu-0.8.0

Although app-emulation/qemu-softmmu-0.8.2 ships with kqemu-0.7.2, kqemu does not work.  This appears to be an issue with the qemu-softmmu-0.8.2.ebuild modifying the Makefile?  To rule out the kqemu ebuild, I've already downloaded & built the kqemu original tarball && make, but still does not work.

I've also tried the kqemu-1.3.0_pre7 & kqemu-1.3.0_pre9 and still lsmod shows kqemu is not being utilized.  Is there a method I can use to debug why qemu isn't using kqemu? Strace doesn't seem to be reporting much.

One other thing I noticed, qemu-softmmu ebuilds are building all targets.  Why not a $TARGET in /etc/make.conf so users only have to build their needed targets saving lots of build time for targets they won't use?

Comment 5 Roger 2006-08-04 21:31:08 UTC
btw, during the app-emulation/qemu-softmmu-0.8.2 emerge, kqemu is showing active via the configure output.
Comment 6 Roger 2006-08-05 12:59:38 UTC
Well, I've found one option "-S" to be useful.  It will stop loading the o/s, & if kqemu isn't in use by then, chances are kqemu won't be used.

Any info would be helpful.
Comment 7 Luca Barbato gentoo-dev 2006-08-17 02:42:59 UTC
Should be fixed now
Comment 8 Roger 2006-08-17 12:24:42 UTC
Was just about to debug myself with original sources.

I'll put it on my agenda for (hopefully) tonight and will report back.
Comment 9 Roger 2006-08-21 10:25:54 UTC
Confirmed.  kqemu is now being used.  For reference, I'm using the following:

# qpkg -I -v |grep qemu
app-emulation/qemu-softmmu-0.8.2-r1 *
app-emulation/kqemu-1.3.0_pre9 *
Comment 10 Roger 2006-08-21 18:41:37 UTC
Just a quick note, using "-smp 2" option causes the kqemu not to be used.

kqemu will still be enabled if the "-smp 1" option is used.

Basically, it looks like kqemu doesn't like smp or multiprocessing.

Looks like an upstream bug.