]> xenbits.xensource.com Git - xen.git/commit
libxl: force netback to wait for hotplug execution before connecting
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 27 Jan 2022 12:51:19 +0000 (13:51 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 27 Jan 2022 12:51:19 +0000 (13:51 +0100)
commit0bdc43c8dec993258e930b34855853c22b917519
treeb254efb5c7d3166790c00a98655b250dec3e46d5
parentdf6f5cd9e51e742b23dcee99907e97a435716061
libxl: force netback to wait for hotplug execution before connecting

By writing an empty "hotplug-status" xenstore node in the backend path
libxl can force Linux netback to wait for hotplug script execution
before proceeding to the 'connected' state.

This is required so that netback doesn't skip state 2 (InitWait) and
thus blocks libxl waiting for such state in order to launch the
hotplug script (see libxl__wait_device_connection).

Reported-by: James Dingwall <james-xen@dingwall.me.uk>
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Tested-by: James Dingwall <james-xen@dingwall.me.uk>
Reviewed-by: Paul Durrant <paul@xen.org>
Tested-by: Julien Grall <jgrall@amazon.com>
Reviewed-by: Wei Liu <wei.liu@kernel.org>
tools/libs/light/libxl_nic.c