Re: [Xen-devel] [XEN PATCH v4] libxl: wait for console path before firing console_available

2020-03-04 Thread Wei Liu
On Tue, Mar 03, 2020 at 03:51:04PM +, Anthony PERARD wrote: > On Tue, Mar 03, 2020 at 02:28:20PM +0100, Paweł Marczewski wrote: > > If the path doesn't become available after LIBXL_INIT_TIMEOUT > > seconds, fail the domain creation. > > > > If we skip the bootloader, the TTY path will be set

Re: [Xen-devel] [XEN PATCH v4] libxl: wait for console path before firing console_available

2020-03-03 Thread Anthony PERARD
On Tue, Mar 03, 2020 at 02:28:20PM +0100, Paweł Marczewski wrote: > If the path doesn't become available after LIBXL_INIT_TIMEOUT > seconds, fail the domain creation. > > If we skip the bootloader, the TTY path will be set by xenconsoled. > However, there is no guarantee that this will happen by

[Xen-devel] [XEN PATCH v4] libxl: wait for console path before firing console_available

2020-03-03 Thread Paweł Marczewski
If the path doesn't become available after LIBXL_INIT_TIMEOUT seconds, fail the domain creation. If we skip the bootloader, the TTY path will be set by xenconsoled. However, there is no guarantee that this will happen by the time we want to call the console_available callback, so we have to wait.