]> xenbits.xensource.com Git - people/pauldu/xennet.git/commit
Clear stolen linkage on device removal
authorPaul Durrant <paul.durrant@citrix.com>
Fri, 4 Mar 2016 11:10:33 +0000 (11:10 +0000)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 1 Apr 2016 09:05:46 +0000 (10:05 +0100)
commited747f69c60fb8d84637366303eea28bf77a07cd
tree3a09ae73ab664ff2ce8ec8c0c2c26bf4770c8fa8
parentc178d356b8ef109598c2c76794f68007b2b4d1f8
Clear stolen linkage on device removal

Commit 04c391d9 "Replace copying network settings with identity stealing" to
XENVIF changed the way that network settings are preserved when replacing
an emulated NIC with a PV network device. This change means that both the
emulated NIC and PV device have the same binding to the Windows network
stack. Thus, if we do not destroy that binding prior to uninstallation of
the PV network driver, the stack will be torn down by the network class
uninstall code rather than left in place for the emulated NIC to use after
reboot.

This patch hence adds code to the XENNET co-installer to remove stolen
linkage information from the registry in the pre-remove phase.

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
src/coinst/coinst.c