WSL icon indicating copy to clipboard operation
WSL copied to clipboard

Nested virtualization silently disabled on AMD Zen 2 after KB5127648: HCS `ProcessorCapabilities` query fails with 0x8007000D (unknown processor feature bits 59/60)

Open northnarrow opened this issue 1 month ago • 8 comments

Windows Version

Microsoft Windows [Version 10.0.26300.9711] — Windows 11 Pro 26H2, cumulative update KB5127648 (2026-10-13)

WSL Version

2.7.13.0 (kernel 6.18.33.2-2)

Are you using WSL 1 or WSL 2?

WSL 2

Kernel Version

6.18.33.2-microsoft-standard-WSL2

Distro Version

Ubuntu 24.04

Other Software

CPU: AMD Ryzen 9 3900XT (Zen 2). Windows features: VirtualMachinePlatform only. Memory Integrity off (also tested on).

Repro Steps

  1. %UserProfile%\.wslconfig: [wsl2] / nestedVirtualization=true, then wsl --shutdown.
  2. In WSL: grep -c svm /proc/cpuinfo → 0; sudo modprobe kvm_amd → kvm_amd: SVM not supported by CPU.

No "Nested virtualization is not supported on this machine" warning is printed.

Expected Behavior

svm exposed to the WSL VM, /dev/kvm usable (it was on this same machine, same Windows build 26300, same WSL kernel, until the Windows reinstall that brought KB5127648).

Actual Behavior / diagnosis

  • WslCoreVm.cpp enables ExposeVirtualizationExtensions only if hcs::GetProcessorFeatures() lists NestedVirt. On this machine that call fails, so it throws, CATCH_LOG() swallows it, nested virtualization stays off and no warning is emitted.
  • HcsGetServiceProperties(L"{ \"PropertyQueries\": {\"ProcessorCapabilities\" : {}}}") returns 0x8007000D ("The data is invalid"), elevated or not. Basic and ProcessorTopology queries work.
  • The hypervisor itself reports nested virtualization support: WHvGetCapability(WHvCapabilityCodeProcessorFeaturesBanks) → 2 banks, bank0 0x060167CB66F39FBF, bank1 0x180000000000006F (bit 6 NestedVirtSupport = 1).
  • bank1 also has bits 59 and 60 set. The processor-feature name table in vmcompute.exe / computecore.dll (10.0.26100.9711) ends at TsaFillNo (bit 55), followed by SentinelAmd, so bits 59/60 have no name. That looks like the source of the invalid-data error.
  • In the WSL guest, CPUID 0x80000021 ECX = 0x00000086 (TSA_SQ_NO, TSA_L1_NO and bit 7 set — not native on Zen 2), which suggests the new bits are the hypervisor's synthesized TSA "not affected" bits.

Suggestions

  • HCS: tolerate (or name) processor feature bits it does not know in ProcessorCapabilities.
  • WSL: when the processor-feature query fails, emit the "nested virtualization not supported" warning (today it is silent) or fall back to WHvGetCapability NestedVirtSupport.

Diagnostic Logs

PowerShell P/Invoke snippets used for the queries above available on request.

northnarrow avatar Oct 14 '26 13:10 northnarrow

Logs are required for review from WSL team

If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'. Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

How to collect WSL logs

Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
Set-ExecutionPolicy Bypass -Scope Process -Force
.\collect-wsl-logs.ps1

The script will output the path of the log file once done.

If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

Once completed please upload the output files to this GitHub issue.

See Collect WSL logs (recommended method).

If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

github-actions[bot] avatar Oct 14 '26 13:10 github-actions[bot]

Same symptom on AMD Zen 4 (Ryzen 7 PRO 250, ThinkPad L14 Gen 6 AMD), Windows 10.0.26300.9711, WSL 3.0.3.0. No svm in WSL, no /dev/kvm, no warning. Uninstalling KB5127648 restores svm and /dev/kvm. Reinstalling it removes them again.

jonsa avatar Oct 14 '26 14:10 jonsa

Also ran into this. Can confirm uninstalling KB5127648 fixed the issue. Affected CPU: AMD Ryzen 5 7640HS w/ Radeon 760M Graphics

samerelmaz avatar Oct 14 '26 14:10 samerelmaz

/emailed-logs

Logs (WslLogs-2026-10-14_18-11-55.tar.gz) sent to [email protected] with the issue number in the subject. The trace covers a wsl --shutdown and a fresh VM start with nestedVirtualization=true.

Thanks @jonsa for confirming on Zen 4: uninstalling KB5127648 restores svm and /dev/kvm, reinstalling it removes them again.

northnarrow avatar Oct 14 '26 16:10 northnarrow

Diagnostic information
Found '/emailed-logs', adding tag 'emailed-logs'

github-actions[bot] avatar Oct 14 '26 16:10 github-actions[bot]

/dupe #41917

benhillis avatar Oct 15 '26 03:10 benhillis

Hi! We've identified this issue as a duplicate of another one that already exists in this repository. This specific instance is being closed in favor of tracking the concern over on the referenced thread.

Thanks for your report!

i confirm that uninstalling KB5127648 helped me to recover /dev/kvm in my WSL2 VM. (running 3.0.3)

fjudith avatar Oct 16 '26 12:10 fjudith