summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu-internal
diff options
context:
space:
mode:
authorAníbal Limón <anibal.limon@linux.intel.com>2015-10-22 10:18:37 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-10-27 07:24:28 +0000
commiteebcbe19b73673292dd949aa2ab2265c19909878 (patch)
tree6a6415779efb0228b29fdaf62659f1631e063192 /scripts/runqemu-internal
parent135d09454c1bfc7c52cdeacfc0bb9638452c664f (diff)
downloadpoky-eebcbe19b73673292dd949aa2ab2265c19909878.tar.gz
runqemu: Enable support for kvm without vhost in x86 and x86_64
KVM can be used without vhost so add a new option to runqemu for use kvm with vhost. Example, runqemu qemux86 core-image-minimal kvm # kvm without vhost runqemu qemux86 core-image-minimal kvm-vhost # kvm with vhost [YOCTO #7443] (From OE-Core rev: 7f5f8f87a4180a2b05188047c6a05da5571f94e2) Signed-off-by: Aníbal Limón <anibal.limon@linux.intel.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu-internal')
-rwxr-xr-xscripts/runqemu-internal6
1 files changed, 5 insertions, 1 deletions
diff --git a/scripts/runqemu-internal b/scripts/runqemu-internal
index 13840b3023..38ea965bdf 100755
--- a/scripts/runqemu-internal
+++ b/scripts/runqemu-internal
@@ -267,7 +267,11 @@ else
267 KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0" 267 KERNEL_NETWORK_CMD="ip=192.168.7.$n2::192.168.7.$n1:255.255.255.0"
268 QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no" 268 QEMU_TAP_CMD="-net tap,vlan=0,ifname=$TAP,script=no,downscript=no"
269 if [ "$KVM_ACTIVE" = "yes" ]; then 269 if [ "$KVM_ACTIVE" = "yes" ]; then
270 QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on" 270 if [ "$VHOST_ACTIVE" = "yes" ]; then
271 QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD,vhost=on"
272 else
273 QEMU_NETWORK_CMD="-net nic,model=virtio $QEMU_TAP_CMD"
274 fi
271 DROOT="/dev/vda" 275 DROOT="/dev/vda"
272 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw" 276 ROOTFS_OPTIONS="-drive file=$ROOTFS,if=virtio,format=raw"
273 else 277 else