605 Commits

Author SHA1 Message Date
Ben Hillis
c1676af6ba Merge remote-tracking branch 'origin/master' into HEAD 2025-11-25 16:46:26 -08:00
Ben Hillis
4207cc80bd
cleanup: VirtioNetworking refactoring to be more portable (#13783)
* cleanup: VirtioNetworking refactoring to be more portable

* more refactoring

* make m_guestDeviceManager private

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-25 16:40:36 -08:00
Blue
b0df225c51
Notice change from build: 134527933 (#13782)
Co-authored-by: WSL notice <noreply@microsoft.com>
2025-11-24 14:33:51 -08:00
AlmaLinux Autobot
722eecafba
chore(distributions): Almalinux auto-update - 20251124 17:13:02 (#13780)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-24 13:01:54 -08:00
Ben Hillis
66904342a5
cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr (#13767)
* cleanup: switch from Microsoft::WRL::ComPtr to wil::com_ptr

* reformat

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-24 12:47:22 -08:00
Blue
47117005db
Return ERROR_INVALID_STATE if CreateLinuxProcess is invoked while m_processExitThread is not running (#13765) 2025-11-24 11:32:34 -08:00
Ben Hillis
955cb899ea
cleanup: remove old WSLA* files from the WSL service folder (#13763)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-22 01:07:00 +00:00
Ben Hillis
4017d23ac9
wsla: add support for ARM64 (#13762)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 17:01:41 -08:00
Ben Hillis
d9c69a50ab
cleanup: VirtioNetworking refactoring (#13760)
* cleanup: update VirtioNetworking class to not rely on the WslCoreConfig struct

* cleanup: simplify VirtioNetworking construction

* remove old constructor and other cleanup

* more minor cleanup

* string cleanup in HandleVirtioModifyOpenPorts

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 16:50:26 -08:00
Ben Hillis
e702db9d5c
Fix midl warning around WSLA_CONTAINER strings being const (#13759)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-21 13:34:05 -08:00
Blue
9a0f8251b8
Implement WSLASession::FormatVirtualDisk (#13753)
* Implement WSLASession::FormatVirtualDisk

* Require absolute paths

* Merge
2025-11-21 11:15:45 -08:00
yao-msft
02e0e3b341
Add test wsla rootfs initialization in wsl client (#13723) 2025-11-21 09:19:47 -08:00
Blue
c3d369df90
Fix service crash when collecting a linux crash dump when maxCrashDumpCount is set to 0 (#13755)
* Fix service crash when collecting a linux crash dump when maxCrashDumpCount is set to 0

* Move the check inside the function
2025-11-21 08:16:04 -08:00
Blue
83be69040e
Fix minor build issues with VS 2026 (#13750)
* Merge latest master into feature/wsl-for-apps

* Fix minor build issues with VS 2026
2025-11-20 18:32:13 -08:00
Blue
dde52d075d
Merge latest master into feature/wsl-for-apps (#13749)
* Merge latest master into feature/wsl-for-apps

* Fix test failure

* Fix test failure

* Fix test failure

* Fix test failure
2025-11-20 16:51:08 -08:00
Blue
1b7e27ef6f
Add *.slnx to .gitignore (#13754) 2025-11-20 15:40:20 -08:00
Blue
50bfffa09d
Add termination callback support and rethink ownership model to match the new API (#13747)
* Move TerminationCallback to the new API

* Remove support for UserSession level VirtualMachines and rework reference management

* Remove session reference from the VM
2025-11-20 15:17:39 -08:00
Blue
c38230d1f1
Notice change from build: 134267142 (#13751)
Co-authored-by: WSL notice <noreply@microsoft.com>
2025-11-20 13:12:51 -08:00
Ben Hillis
1ea3a8e18b
deps: update a number of NuGet packages to the latest available versions (#13728)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-20 11:02:06 -08:00
Blue
f75997128d
Mask systemd-networkd-wait-online.service during boot (#13611) 2025-11-20 09:23:12 -08:00
Kevin Vega
911a3aa758
Add crash dump collection (#13741) 2025-11-20 09:21:20 -08:00
AlmaLinux Autobot
dbf49f1ae9
chore(distributions): Almalinux auto-update - 20251119 12:04:35 (#13743)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2025-11-19 15:36:09 -08:00
Ben Hillis
b73897e88a
build: fix minor compiler errors when building with VS2026 (#13744)
* build: fix minor compiler errors when building with VS2026

* s

* use VS2022 for clang format and cross compiling

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-19 15:35:49 -08:00
Blue
f0d257f760
Remove the old API - phase 3: Move remaining flags out of WSLAApi.h (#13736)
* Remove the old API - phase 2

* Format
2025-11-18 15:05:39 -08:00
Blue
f24f9299fe
Remove the old API - phase 2: Remove the GPU methods (#13735)
* Remove the old wslaclient.dll based API and port tests

* Format

* Remove the old API - phase 2
2025-11-18 11:41:23 -08:00
Ben Hillis
7226b05100
wslsettings: ensure selected setting is auto-expanded and selected (#13689)
* wslsettings: ensure selected setting is auto-selected

Implement keyboard focus management for SettingsExpander controls across settings pages. This resolves an accessibility issue reported internally.

* add asserts

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-18 08:19:50 -08:00
Blue
5bd90738c0
Remove the old API - phase 1 (#13733)
* Remove the old wslaclient.dll based API and port tests

* Format
2025-11-17 15:09:55 -08:00
Blue
cce28f28aa
wsla: Add support for creating processes via WSLAProcessLauncher from the service (#13719)
* wsla: Add support for creating processes via WSLAProcessLauncher from the service

* Add new files

* Prepare for PR

* Remove duplicated method
2025-11-17 15:04:20 -08:00
Blue
966dd9819e
Add 'directory.build.targets' to .gitignore (#13727) 2025-11-17 11:18:55 -08:00
Blue
b6cc29eefc
Localization change from build: 134015316 (#13731)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-11-17 11:18:05 -08:00
Blue
14257f99de
Move the logic to mount the root VHD & basic filesystems to the service (#13726) 2025-11-14 16:58:58 -08:00
Ben Hillis
87c1100620
.clang-format: add InsertBraces: true and minor fix to FormatSource.ps1 (#13712)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-14 16:12:02 -08:00
Kevin Vega
d63fee34f2
Add vmrs collection (#13705)
* Add vmrs collection
2025-11-14 14:33:55 -08:00
Flor Chacón
de494011ae
Add targets to nuget package (#13718) 2025-11-14 13:12:02 -08:00
Blue
8eee7439b2
Restore the call to ApplyProcessMitigationPolicies in ServiceMain (#13715) 2025-11-14 12:31:57 -08:00
Blue
c1a3e6174c
Implement WSLAProcess (#13694)
* wsla: Prototype new process waitpid() model

* Save state

* Save state

* Save state

* Save state

* Save state

* Wire everything

* Format

* Save state

* Save state

* Redesign process launcher

* Port tests

* Port tests

* Move shell to new API

* Format

* Port more tests

* Add copyright header

* Prepare for PR

* Fix tests

* PR feedback

* Fix termination issue + add more negative tests

* Fix termination issue + add more negative tests

* Format
2025-11-13 18:10:00 -08:00
Ben Hillis
7c010a1e93
wslsettings: add underlines to links in about page (#13703)
Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-13 13:53:05 -08:00
Ben Hillis
9fad2a1b59
wslsettings: fix OOBE text truncation at 200% text scaling (#13693)
* wslsettings: fix OOBE text truncation at 200% text scaling

Add text scaling factor to window resize calculation and make hero image height responsive to text scaling. Increase minimum window size for better accessibility. Fix MAS 1.4.4 compliance for OOBE dialog.

* pr feedback

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-13 13:52:29 -08:00
Blue
b2c28b92fe
Localization change from build: 133610492 (#13704)
Co-authored-by: WSL localization <noreply@microsoft.com>
2025-11-11 08:12:16 -08:00
Ben Hillis
ea5c29eae7
wslsettings: allow OOBE window to close with escape key (#13686)
* wslsettings: allow OOBE windows to close with escape key

* fix memory leak

---------

Co-authored-by: Ben Hillis <benhill@ntdev.microsoft.com>
2025-11-07 12:53:10 -08:00
Blue
5585e4210b
wsla: Add service API definition and stub methods (#13659)
* wsla: Add service API definition

* Explicitely mark API's to be deleted in the future

* Add TODOs and session storage path

* Update src/windows/wslaservice/inc/wslaservice.idl

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>

* Update comments

* PR feedback

* Use an object for containers

* Update API definition

* Add stub methods

---------

Co-authored-by: Pooja Trivedi <poojatrivedi@gmail.com>
2025-11-07 11:46:42 -08:00
Pooja Trivedi
b489a11b69
Add a --new-api temporary flag for WSLA debugging (#13684)
* Add a --new-api flag to WslClient tool
* When the flag is specified, the newly wired
  codepath for WSLASession creation is followed
* Existing mode of WSLAUserSession creating VM
  will temporarily exist parallely until proper
  scaffolding cleanup

Authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-06 14:32:38 -05:00
Pooja Trivedi
34e673fc20
WSLAUserSession and WSLASession changes (#13677)
* Add WSLASession creation and tracking in WSLAUserSession
* Wire up WSLASession to contain and create WSLAVirtualMachine

Co-authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-06 09:42:48 -05:00
Blue
26ceaa566d
Fix incorrect string formating in SocketChannel.h (#13680) 2025-11-05 17:52:16 -08:00
Pooja Trivedi
36bf9d4127
Add fstype parameter to WslClient tool (#13678)
Used to specify filesystem type for VHD mounting in VM
Default: ext4

Authored-by: Pooja Trivedi <trivedipooja@microsoft.com>
2025-11-05 17:09:03 -05:00
Ben Hillis
1c5afc41a4
Merge pull request #13679 from microsoft/user/benhill/merge_master_to_feature
Merge master -> feature/wsl-for-apps
2025-11-05 13:07:01 -08:00
Blue
a7ee103dc7
wsla: Create a dedicated ETL provider for wslaservice.exe (#13673) 2025-11-05 11:22:43 -08:00
Ben Hillis
14226f750c Merge remote-tracking branch 'origin/master' into feature/wsl-for-apps 2025-11-05 09:38:29 -08:00
Scott Bradnick
09c17eb6c6
Remove SLE15SP6; add SLE16.0 (#13647) 2025-11-04 15:56:49 -08:00
Blue
46db45c39a
Add a temporary flag to wsl.exe to create a WSLA shell (#13664)
* Add a temporary flag to wsl.exe to create a WSLA shell

* Improve some error paths

* Add dependency
2025-11-04 13:09:20 -08:00