From patchwork Wed Oct 3 10:51:46 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: qemu: Fixed running QEMU with virtio error reporting Date: Wed, 03 Oct 2012 10:51:46 -0000 From: Cristian Iorga X-Patchwork-Id: 37673 Message-Id: <1349261506-2829-1-git-send-email-cristian.iorga@intel.com> To: openembedded-core@lists.openembedded.org 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. Fixes [YOCTO #3184] Signed-off-by: Cristian Iorga --- scripts/runqemu | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/scripts/runqemu b/scripts/runqemu index e6e43f2..5608c72 100755 --- a/scripts/runqemu +++ b/scripts/runqemu @@ -223,13 +223,13 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then fi if [ ! -e /dev/kvm ]; then echo "Missing KVM device. Have you inserted kvm modules?" - echo "For further help see" + echo "For further help see:" echo "$YOCTO_KVM_WIKI"; exit 1; fi if [ ! -e /dev/vhost-net ]; then 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"; exit 1; fi @@ -238,13 +238,13 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then KVM_ACTIVE="yes" else 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"; exit 1; fi - if [ ! -w /dev/vhost-net -a -r /dev/vhost-net ]; then + if ! 9<>/dev/vhost-net ; then 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"; exit 1; fi