|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH] libxl: force netback to wait for hotplug execution before connecting
Hi, On 24/01/2022 16:02, Roger Pau Monne wrote: 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. I was actually chasing the same issue today :). This is required so that netback doesn't skip state 2 (InitWait) and Technically netback never skip state 2 (otherwise it would always be reproducible). Instead, libxl may not be able to observe state 2 because receive a watch is asynchronous and doesn't contain the value of the node. So the backend may have moved to Connected before the state is read. 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@xxxxxxxxxxxxxx> Signed-off-by: Roger Pau Monné <roger.pau@xxxxxxxxxx> Tested-by: James Dingwall <james-xen@xxxxxxxxxxxxxx> I could easily reproduced by adding a sleep(1) before reading the key and use 'xl network-attach ...'. Tested-by: Julien Grall <jgrall@xxxxxxxxxx>
Cheers, -- Julien Grall
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |