]> xenbits.xensource.com Git - pvdrivers/win/xenvif.git/commit
Cope with unexpected initial backend states
authorPaul Durrant <paul.durrant@citrix.com>
Mon, 22 Sep 2014 11:02:44 +0000 (12:02 +0100)
committerPaul Durrant <paul.durrant@citrix.com>
Mon, 22 Sep 2014 11:02:44 +0000 (12:02 +0100)
commitc9b6e56e7342a1bb31cfb79f28b6a00d05954006
treedcb72ceaf8ca3427def72b26c3769300eb1c608c
parent85868598dfe9be356e8fc9077c4bb599b27179a8
Cope with unexpected initial backend states

If the OS is booted via iSCSI, then the backend will already be in the
Connected state when the xenvif driver loads.  The backend is stable
in this state, so __FrontendPrepare() eventually times out waiting for
the backend state to change.

Fix by leading the backend through the Closing and Closed states if we
find it initially in the Connected (or Closing) states.

Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
Forward ported.

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