]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: install port profile and mac address on netdev hostdevs
authorRoopa Prabhu <roprabhu@cisco.com>
Tue, 6 Mar 2012 01:12:44 +0000 (17:12 -0800)
committerLaine Stump <laine@laine.org>
Tue, 6 Mar 2012 11:04:04 +0000 (06:04 -0500)
commitce43483caffb1bb27a095c1ba96df6eeb246fc2e
tree76ef80f7d8ae1fa90f90645abbc14ff56f86f181
parent15bbfd8390b6d7ea51a471accc912f449529f68d
qemu: install port profile and mac address on netdev hostdevs

These changes are applied only if the hostdev has a parent net device
(i.e. if it was defined as "<interface type='hostdev'>" rather than
just "<hostdev>").  If the parent netdevice has virtual port
information, the original virtualport associate functions are called
(these set and restore both mac and port profile on an
interface). Otherwise, only mac address is set on the device.

Note that This is only supported for SR-IOV Virtual Functions (not for
standard PCI or USB netdevs), and virtualport association is only
supported for 802.1Qbh. For all other types of cards and types of
virtualport, a "Config Unsupported" error is returned and the
operation fails.

Signed-off-by: Roopa Prabhu <roprabhu@cisco.com>
src/libvirt_private.syms
src/qemu/qemu_hostdev.c
src/qemu/qemu_hostdev.h
src/qemu/qemu_hotplug.c