summaryrefslogtreecommitdiffstats
path: root/scripts/runqemu
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-xscripts/runqemu12
1 files changed, 6 insertions, 6 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index e6e43f20c8..fb7ac56398 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -223,28 +223,28 @@ if [ "x$KVM_ENABLED" = "xyes" ]; then
223 fi 223 fi
224 if [ ! -e /dev/kvm ]; then 224 if [ ! -e /dev/kvm ]; then
225 echo "Missing KVM device. Have you inserted kvm modules?" 225 echo "Missing KVM device. Have you inserted kvm modules?"
226 echo "For further help see" 226 echo "For further help see:"
227 echo "$YOCTO_KVM_WIKI"; 227 echo "$YOCTO_KVM_WIKI";
228 exit 1; 228 exit 1;
229 fi 229 fi
230 if [ ! -e /dev/vhost-net ]; then 230 if [ ! -e /dev/vhost-net ]; then
231 echo "Missing virtio net device. Have you inserted vhost-net module?" 231 echo "Missing virtio net device. Have you inserted vhost-net module?"
232 echo "For further help see" 232 echo "For further help see:"
233 echo "$YOCTO_PARAVIRT_KVM_WIKI"; 233 echo "$YOCTO_PARAVIRT_KVM_WIKI";
234 exit 1; 234 exit 1;
235 fi 235 fi
236 if 9<>/dev/kvm ; then 236 if [ -w /dev/kvm -a -r /dev/kvm ]; then
237 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu host" 237 SCRIPT_QEMU_OPT="$SCRIPT_QEMU_OPT -enable-kvm -cpu host"
238 KVM_ACTIVE="yes" 238 KVM_ACTIVE="yes"
239 else 239 else
240 echo "You have no rights on /dev/kvm." 240 echo "You have no rights on /dev/kvm."
241 echo "Please change the ownership of this file as described at" 241 echo "Please change the ownership of this file as described at:"
242 echo "$YOCTO_KVM_WIKI"; 242 echo "$YOCTO_KVM_WIKI";
243 exit 1; 243 exit 1;
244 fi 244 fi
245 if [ ! -w /dev/vhost-net -a -r /dev/vhost-net ]; then 245 if [ ! -w /dev/vhost-net -o ! -r /dev/vhost-net ]; then
246 echo "You have no rights on /dev/vhost-net." 246 echo "You have no rights on /dev/vhost-net."
247 echo "Please change the ownership of this file as described at" 247 echo "Please change the ownership of this file as described at:"
248 echo "$YOCTO_PARAVIRT_KVM_WIKI"; 248 echo "$YOCTO_PARAVIRT_KVM_WIKI";
249 exit 1; 249 exit 1;
250 fi 250 fi