]> xenbits.xensource.com Git - libvirt.git/commit
bhyve: don't fail on busy tap devices
authorRoman Bogorodskiy <bogorodskiy@gmail.com>
Sun, 23 Mar 2014 09:44:41 +0000 (13:44 +0400)
committerRoman Bogorodskiy <bogorodskiy@gmail.com>
Tue, 25 Mar 2014 16:47:32 +0000 (20:47 +0400)
commit425eeed8c4f3d5566be52ccb481d9557bcb019fa
tree0fe735033ac2ba21449e684aaf2baac2db993657
parent139efe758c358327262ddb235f0043562ff1e39f
bhyve: don't fail on busy tap devices

We use virBhyveTapGetRealDeviceName() to map network interface name
to a real device path, trying to open possible devices and getting
names by ioctl.

Make it skip devices that fail to open with EBUSY because they're
most likely already used by other VMs.
src/bhyve/bhyve_command.c