qemu: Fixed running QEMU with virtio error reporting
If vhost_net module is not properly installed, runqemu script will report the error and provide the user with a link to the guide. Also corrected small cosmetic issues in runqemu script messages. Also removed <> (read/write) check. Fixes [YOCTO #3184] (From OE-Core rev: f7365f62325189b0f9a9a1d440f11f2356c8f01d) Signed-off-by: Cristian Iorga <cristian.iorga@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
595b119894
commit
ef5dcad3e3
|
@ -223,28 +223,28 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then
|
||||||
fi
|
fi
|
||||||
if [ ! -e /dev/kvm ]; then
|
if [ ! -e /dev/kvm ]; then
|
||||||
echo "Missing KVM device. Have you inserted kvm modules?"
|
echo "Missing KVM device. Have you inserted kvm modules?"
|
||||||
echo "For further help see"
|
echo "For further help see:"
|
||||||
echo "$YOCTO_KVM_WIKI";
|
echo "$YOCTO_KVM_WIKI";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if [ ! -e /dev/vhost-net ]; then
|
if [ ! -e /dev/vhost-net ]; then
|
||||||
echo "Missing virtio net device. Have you inserted vhost-net module?"
|
echo "Missing virtio net device. Have you inserted vhost-net module?"
|
||||||
echo "For further help see"
|
echo "For further help see:"
|
||||||
echo "$YOCTO_PARAVIRT_KVM_WIKI";
|
echo "$YOCTO_PARAVIRT_KVM_WIKI";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if 9<>/dev/kvm ; then
|
if [ -w /dev/kvm -a -r /dev/kvm ]; then
|
||||||
SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu host"
|
SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu host"
|
||||||
KVM_ACTIVE="yes"
|
KVM_ACTIVE="yes"
|
||||||
else
|
else
|
||||||
echo "You have no rights on /dev/kvm."
|
echo "You have no rights on /dev/kvm."
|
||||||
echo "Please change the ownership of this file as described at"
|
echo "Please change the ownership of this file as described at:"
|
||||||
echo "$YOCTO_KVM_WIKI";
|
echo "$YOCTO_KVM_WIKI";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
if [ ! -w /dev/vhost-net -a -r /dev/vhost-net ]; then
|
if [ ! -w /dev/vhost-net -o ! -r /dev/vhost-net ]; then
|
||||||
echo "You have no rights on /dev/vhost-net."
|
echo "You have no rights on /dev/vhost-net."
|
||||||
echo "Please change the ownership of this file as described at"
|
echo "Please change the ownership of this file as described at:"
|
||||||
echo "$YOCTO_PARAVIRT_KVM_WIKI";
|
echo "$YOCTO_PARAVIRT_KVM_WIKI";
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue