]> code.ossystems Code Review - openembedded-core.git/commit
qemu: Use a TAP device instead of slirp for networking
authorJeff Dike <jdike@x86_64.user-mode-linux.org>
Wed, 21 Jul 2010 15:04:59 +0000 (11:04 -0400)
committerRichard Purdie <rpurdie@linux.intel.com>
Fri, 20 Aug 2010 15:20:09 +0000 (16:20 +0100)
commitc791544bb02e852644c55401018bc17ec1b9b40e
tree33d510d91af137a96b1782b9fe8d901867d604f4
parentb5b3825ce6df45b16e1f3e15001da213bc8b0a55
qemu: Use a TAP device instead of slirp for networking

With this patch, a persistent TAP device is set up by poky-qemu-ifup,
which is now run before qemu.  The qemu command line now uses the
device that was constructed (rather than the hard-coded tap0) and it
is told not to run any networking scripts.

When qemu shuts down, poky-qemu-ifdown removes the TAP device.

sudo use - sudo is used to run poky-qemu-ifup.  sudo is no longer used
to run qemu, as qemu no longer needs privileges to set up networking.
poky-qemu-ifdown is run without privileges, as you can remove a TAP
device which you own.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
scripts/poky-qemu-ifdown
scripts/poky-qemu-ifup
scripts/poky-qemu-internal