]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
qemu: change macvtap device MAC address in response to NIC_RX_FILTER_CHANGED
authorLaine Stump <laine@laine.org>
Wed, 24 Sep 2014 08:30:04 +0000 (04:30 -0400)
committerLaine Stump <laine@laine.org>
Mon, 6 Oct 2014 17:52:37 +0000 (13:52 -0400)
commitdb6b738dde047c9b38ed41add5d00bbbdb7c5daa
tree8428ba47bb683eaed2c09ea6624dc6f487bfae73
parentb6bdda458ab08353dc2b664d026de6322c7db680
qemu: change macvtap device MAC address in response to NIC_RX_FILTER_CHANGED

This patch fills in the functionality of
processNicRxFilterChangedEvent().  It now checks if it is appropriate
to respond to the NIC_RX_FILTER_CHANGED event (based on device type
and configuration) and takes appropriate action. Currently it checks
if the guest interface has been configured with
trustGuestRxFilters='yes', and if the host side device is macvtap. If
so, and the MAC address on the guest has changed, the MAC address of
the macvtap device is changed to match.

The result of this is that networking from the guest will continue to
work if the mac address of a macvtap-connected network device is
changed from within the guest, as long as trustGuestRxFilters='yes'
(previously changing the MAC address in the guest would break
networking).
src/qemu/qemu_driver.c