Files
Reims-Go/internal/host/hypervisor_other.go
T
Dnyo666 ff99d8d702 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
2026-12-03 13:39:08 +08:00

22 lines
478 B
Go

//go:build !windows
package host
import (
"context"
"fmt"
"runtime"
)
func currentBootSession() bootSession {
return bootSession{}
}
func SetHypervisorBootElevated(_ context.Context, _ bool) error {
return fmt.Errorf("hypervisor boot configuration is only supported on Windows (current OS: %s)", runtime.GOOS)
}
func OpenWindowsCoreIsolation() error {
return fmt.Errorf("Windows Security Core Isolation is only available on Windows (current OS: %s)", runtime.GOOS)
}