libxl: force netback to wait for hotplug execution before connecting
authorRoger Pau Monné <roger.pau@citrix.com>
Wed, 16 Feb 2022 14:52:22 +0000 (15:52 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 16 Feb 2022 14:52:22 +0000 (15:52 +0100)
commit58d289c90690841def25b451d3855a187781b3ab
tree433c65777027fd0caeeac9f25ce518f0b4d948c1
parentcd6250eaf0ab9d36fb12885916db4ee7d0a93448
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>
master commit: 0bdc43c8dec993258e930b34855853c22b917519
master date: 2022-01-27 13:51:19 +0100
tools/libs/light/libxl_nic.c