feat(host,ui): add opt-in Hyper-V boot switch and hypervisor launch detection (#122)

- Distinguish hypervisor launch disabled (hypervisor_off) from BIOS/UEFI
  virtualization disabled (no_hypervisor) via unprivileged Win32 & DeviceGuard
  probes without spawning background PowerShell/BCD processes
- Add default-off `enable_hypervisor_switch` preference in Settings -> General
  with confirmation modal, active VM/task guards, HVCI notice, same-boot undo,
  and single-UAC System32 execution without auto-restarting Windows
- Update Engine page, first-run Setup, `reims-go doctor`, and VM startprep
  diagnostics for `hypervisor_off` and pending boot states
This commit is contained in:
Dnyo666 committed 2026-12-03 13:39:08 +08:00
1 parent a5311d74b9
commit ff99d8d702
37 files changed
+2044 -63

No files matched your search

+2
View File
@@ -186,6 +186,8 @@ func cmdDoctor(cfg *config.Config, loc i18n.Locale, args []string) error {
switch rep.WHPX {
case host.WHPXReady:
whpxKey = "doctor.whpx.ok"
case host.WHPXHypervisorOff:
whpxKey = "doctor.whpx.hypervisor_off"
case host.WHPXNoHypervisor:
whpxKey = "doctor.whpx.no_hv"
case host.WHPXMissing: