- 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
22 lines
478 B
Go
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)
|
|
}
|