xen-platform: Cleanup network infrastructure when emulated NICs are unplugged
commit6c808651e327388c22845700e14fe103da9b37cd
authorRoss Lagerwall <ross.lagerwall@citrix.com>
Fri, 30 Jun 2017 12:50:28 +0000 (30 13:50 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 7 Jul 2017 18:11:12 +0000 (7 11:11 -0700)
tree852dbfbe6c1738a666f12f00603772181c691edb
parent9f2130f58d5dd4e1fcb435cca08bf77e7c32e6c6
xen-platform: Cleanup network infrastructure when emulated NICs are unplugged

When the guest unplugs the emulated NICs, cleanup the peer for each NIC
as it is not needed anymore. Most importantly, this allows the tap
interfaces which QEMU holds open to be closed and removed.

Signed-off-by: Ross Lagerwall <ross.lagerwall@citrix.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Signed-off-by: Stefano Stabellini <sstabellini@kernel.org>
hw/i386/xen/xen_platform.c