diff options
author | Chen Qi <Qi.Chen@windriver.com> | 2020-08-10 14:57:29 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-08-11 20:35:39 +0100 |
commit | 98549fd68c1273dfbf9ab6cdfa054b57521fb4d6 (patch) | |
tree | 009e93ca52a37bb4b6d5d4ece4bbe63bdcab7a83 /scripts | |
parent | 9e2c0e57df29122272e28834148ca7956c396e3e (diff) | |
download | poky-98549fd68c1273dfbf9ab6cdfa054b57521fb4d6.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.
(From OE-Core rev: 53bdf2d20077921bdf83641c365d60d85174f5b5)
Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/runqemu | 4 |
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): | |||
585 | logger.error("For further help see:") | 585 | logger.error("For further help see:") |
586 | raise RunQemuError(yocto_paravirt_kvm_wiki) | 586 | raise RunQemuError(yocto_paravirt_kvm_wiki) |
587 | 587 | ||
588 | if not os.access(dev_kvm, os.W_OK|os.R_OK): | 588 | if not os.access(dev_vhost, os.W_OK|os.R_OK): |
589 | logger.error("You have no read or write permission on /dev/vhost-net.") | 589 | logger.error("You have no read or write permission on /dev/vhost-net.") |
590 | logger.error("Please change the ownership of this file as described at:") | 590 | logger.error("Please change the ownership of this file as described at:") |
591 | raise RunQemuError(yocto_kvm_wiki) | 591 | raise RunQemuError(yocto_paravirt_kvm_wiki) |
592 | 592 | ||
593 | def check_fstype(self): | 593 | def check_fstype(self): |
594 | """Check and setup FSTYPE""" | 594 | """Check and setup FSTYPE""" |