diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-06 23:17:07 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2016-09-09 12:07:32 +0100 |
commit | eb1494f9da5a6b5a5453d692c9e258f1a7b0aee4 (patch) | |
tree | 35115ed5540bd15ca71b3f0ca618d18868c29725 /scripts/runqemu | |
parent | d1cb381977840a8b9dc0bc2c824e7a2d0c627ef3 (diff) | |
download | poky-eb1494f9da5a6b5a5453d692c9e258f1a7b0aee4.tar.gz |
runqemu: Update to modern prefrerred net syntax
(From OE-Core rev: 5e61766d976b6d036946c1b4e4ac742a33a03815)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts/runqemu')
-rwxr-xr-x | scripts/runqemu | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/runqemu b/scripts/runqemu index c43db8c227..b9dbe97cba 100755 --- a/scripts/runqemu +++ b/scripts/runqemu | |||
@@ -741,7 +741,7 @@ class BaseConfig(object): | |||
741 | if qb_tap_opt: | 741 | if qb_tap_opt: |
742 | qemu_tap_opt = qb_tap_opt.replace('@TAP@', tap).replace('@MAC@', mac) | 742 | qemu_tap_opt = qb_tap_opt.replace('@TAP@', tap).replace('@MAC@', mac) |
743 | else: | 743 | else: |
744 | qemu_tap_opt = "-net nic,model=virtio,mac=%s -net tap,vlan=0,ifname=%s,script=no,downscript=no" % (mac, self.tap) | 744 | qemu_tap_opt = "-device virtio-net-pci,netdev=net0,mac=%s -netdev tap,id=net0,ifname=%s,script=no,downscript=no" % (mac, self.tap) |
745 | 745 | ||
746 | if self.vhost_enabled: | 746 | if self.vhost_enabled: |
747 | qemu_tap_opt += ',vhost=on' | 747 | qemu_tap_opt += ',vhost=on' |