diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2013-09-25 21:59:11 +0100 |
---|---|---|
committer | Paul Eggleton <paul.eggleton@linux.intel.com> | 2014-03-12 19:00:34 +0000 |
commit | 8f3ecfda5e57fbc1903dec1cbb44c92ef599849f (patch) | |
tree | d80b8e40b7e16235b07c73f659b9cbdf7e46c392 | |
parent | 35555a670a157cf08f6472065b2d1c41e340e8f2 (diff) | |
download | openembedded-core-8f3ecfda5e57fbc1903dec1cbb44c92ef599849f.tar.gz |
runqemu: Use correct kvm CPU options for qemux86* with kvm
The existing -cpu host option caused kernel panics when people attempted to use
the kvm option. After research and discussion, the best options appear to
be the kvm32/kvm64 cpu types so lets use these instead. These resolve
the kernel issues for me.
[YOCTO #3908]
(From OE-Core master rev: bdc6d3be6ffa4ed358153f9c9332b632324f5833)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rwxr-xr-x | scripts/runqemu | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index 8ed1226c06..8f03ec308c 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -261,7 +261,11 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then exit 1; fi if [ -w /dev/kvm -a -r /dev/kvm ]; then - SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu host" + if [ "x$MACHINE" = "xqemux86" ]; then + SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu kvm32" + elif [ "x$MACHINE" = "xqemux86-64" ]; then + SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu kvm64" + fi KVM_ACTIVE="yes" else echo "You have no rights on /dev/kvm." |