]> xenbits.xensource.com Git - pvdrivers/win/xennet.git/commit
Re-instate code network settings code in the co-installer
authorPaul Durrant <paul.durrant@citrix.com>
Thu, 11 Aug 2016 14:56:47 +0000 (15:56 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Fri, 12 Aug 2016 09:48:17 +0000 (10:48 +0100)
commit9695e3bdcab419f3e2fabd96373a929cb27ff267
tree6bf92e004bb6eddf7c029cef57a6970e82188b8c
parent5990152275bb06160e092285698c4529d13b7724
Re-instate code network settings code in the co-installer

This functionality was moved into XENVIF when it transpired that it did not
work with Windows 10. However, attempting to mess with network settings in
a driver has also proved to have problematic corner cases.

This patch re-instates old code but changes the mechnism for acquiring
network settings from an emulated device. Instead of attempting to copy
settings to a new stack binding (which failed on Windows 10 because the
stack binding was not set up), the stack binding of the emulated device is
cloned. This is done in post-install phase if the emulated device is online
(otherwise Windows will refuse to start the PV device) or in pre-install
phase if the emulated device is offline, as is the case when re-installing
XENNET. This appears to work reliably across all variants of Windows.

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