summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorChen Qi <Qi.Chen@windriver.com>2020-08-10 14:57:29 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-08-11 20:35:32 +0100
commit53bdf2d20077921bdf83641c365d60d85174f5b5 (patch)
treec8e8f77b8056bbb4bb31d1aaaf6fc8a058a32645 /scripts
parente0657ff13453deedbdcf7c2f8a8854f601c659bd (diff)
downloadopenembedded-core-contrib-53bdf2d20077921bdf83641c365d60d85174f5b5.tar.gz
runqemu: fix permission check of /dev/vhost-net
The code should check /dev/vhost-net instead of /dev/kvm. And the permission check logically belongs to the part when kvm-vhost is enabled. Also fix the URL to point to the correct wiki page. Signed-off-by: Chen Qi <Qi.Chen@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/runqemu4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/runqemu b/scripts/runqemu
index f2168c18a3..c40acc4a86 100755
--- a/scripts/runqemu
+++ b/scripts/runqemu
@@ -585,10 +585,10 @@ class BaseConfig(object):
logger.error("For further help see:")
raise RunQemuError(yocto_paravirt_kvm_wiki)
- if not os.access(dev_kvm, os.W_OK|os.R_OK):
+ if not os.access(dev_vhost, os.W_OK|os.R_OK):
logger.error("You have no read or write permission on /dev/vhost-net.")
logger.error("Please change the ownership of this file as described at:")
- raise RunQemuError(yocto_kvm_wiki)
+ raise RunQemuError(yocto_paravirt_kvm_wiki)
def check_fstype(self):
"""Check and setup FSTYPE"""