Bug 2970

Summary: kvm not enabled with qemu
Product: [Runtime] General Runtime Reporter: Laurentiu Serban <laurentiu.serban>
Component: General RuntimeAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: alexandrux.palalau, scott.a.garman, sgw, yp.kernel.watcher, yp.watcher
Version: 1.3   
Target Milestone: 1.3 M4   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Laurentiu Serban 2012-08-20 11:27:17 UTC
The following error occurs when trying to run qemu with kvm.
Although the condition required is met.

lserban@computer2:~/work/master/build$ runqemu tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm
KVM only support x86 & x86-64. Remove kvm from the command-line
lserban@computer2:~/work/master/build$ lsmod | grep kvm
kvm_intel             137721  0
kvm                   415459  1 kvm_intel
Comment 1 Saul Wold 2012-08-21 20:45:49 UTC
Does this also happen with ext3 images?  I notice this is a btrfs image, I am building a btrfs image also to test.
Comment 2 Saul Wold 2012-08-21 22:54:01 UTC
I also tested with a btrfs image and it works for me.I am going to close this one, if there is a real problem, please provide more details.
Comment 3 Alexandru Palalau 2012-08-23 08:15:09 UTC
Tested on 1.3_M3.rc2 tag with ext3 image and the error is still encountered.
Comment 4 Saul Wold 2012-08-23 20:45:45 UTC
Ok, I see the problem now!  It's really a runqemu issue not parsing MACHINE, you missed putting qemux86 on the runqemu command

runqemu tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm

It should be 

runqemu qemux86 tmp/deploy/images/bzImage-qemux86.bin tmp/deploy/images/core-image-sato-qemux86-20120819235319.rootfs.btrfs kvm

The check for a blank machine and parsing of the kernel comes AFTER the kvm check, should be a straight forward fix.
Comment 6 Laurentiu Serban 2012-09-20 21:22:46 UTC
Verified in commit id 8ebed883d45ee952bd89d2143e0b0ab8736049b0