Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/windows/common/WslCoreConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ struct Config
int InstanceIdleTimeout = (15 * 1000);
std::filesystem::path DebugConsoleLogFile;
std::wstring VmSwitch;
int KernelBootTimeout = (30 * 1000);
int KernelBootTimeout = (90 * 1000);
int DistributionStartTimeout = (60 * 1000);
int MountDeviceTimeout = (5 * 1000);
bool EnableHostFileSystemAccess = true;
Expand Down
6 changes: 5 additions & 1 deletion src/windows/service/exe/WslCoreVm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,11 @@ void WslCoreVm::Initialize(const GUID& VmId, const wil::shared_handle& UserToken
}

// Accept the connection from the Linux guest for notifications.
m_notifyChannel = AcceptConnection(m_vmConfig.KernelBootTimeout);
// Instrumented so slow/hung boots are attributed to this phase vs WaitForMiniInitConnect.
{
SlowOperationWatcher slowOperation{"WaitForNotifyChannelConnect"};
m_notifyChannel = AcceptConnection(m_vmConfig.KernelBootTimeout);
}

// Receive and parse the guest kernel version
{
Expand Down