]> git.ipfire.org Git - thirdparty/libvirt.git/commit
network: better validation of devices in hostdev network pool
authorLaine Stump <laine@laine.org>
Sat, 25 Mar 2017 18:00:13 +0000 (14:00 -0400)
committerLaine Stump <laine@laine.org>
Mon, 27 Mar 2017 16:15:39 +0000 (12:15 -0400)
commit5c8d622f5d7fefd43e31a7aa6bdc4fe07d26bf73
tree8b0b1bf290c9682257369cc93cca930a391c7d7b
parent76107bf1d9d64296520e7be7d06f5c93ddad287e
network: better validation of devices in hostdev network pool

This adds a few validations to the devices listed for a hostdev network:

* devices must be listed by PCI address, not by netdev name

* listing a device by PCI address is valid only for hostdev networks, not
  for other types of network (e.g. macvtap passthrough).

* each device in a hostdev pool must be an SR-IOV VF

Resolves: https://bugzilla.redhat.com/1004676
src/network/bridge_driver.c