Files
Reims-Go/internal/host/host_other.go
T
Nwflower b2f7f036d8 feat(m5): add macOS prev-lang preset, disk resize/compact, audio diagnostics, and VM thumbnails
- M5.5: add pure-Go internal/opencore reader/in-place patcher for OpenCore NVRAM prev-lang:kbd with sidecar persistence, automatic replay after update-opencore/graphics changes/CoW clones, wizard/settings/CLI (--guest-lang) support
- M5.6: add stopped VM disk resize (qemu-img resize + dynamic macOS APFS expand command) and standalone qcow2 compaction (backing-file guard, free-space check, qemu-img check, atomic swap) in GUI Settings and CLI (vm resize/compact)
- M5.9: add Win32 winmm audio output/input device probing, fix reims-ctl show audio_backend parsing, expose audio backend selector (auto/dsound/none) and latency/mic diagnostics in Settings & CLI
- UI & thumbnails: add QMP screendump VM thumbnails (internal/thumb, thumbnail_flow.go), VMPage/CreateWizard layout polish, and docs/ui-audit.md
- Update docs/roadmap.md for M5.5, M5.6, and M5.9
2026-11-28 10:17:54 -07:00

32 lines
853 B
Go

//go:build !windows
package host
import (
"fmt"
"runtime"
)
// Inspect returns basic host facts on non-Windows dev machines (e.g., macOS).
func Inspect(dataRoot string) Report {
presets, rec := RecommendDisplayPresets(nil)
return Report{
OS: runtime.GOOS,
Arch: runtime.GOARCH,
LogicalCPUs: runtime.NumCPU(),
DataRoot: dataRoot,
WHPX: WHPXUnsupported,
RecommendedResolution: rec,
DisplayPresets: presets,
Audio: ProbeAudio(),
}
}
func PinProcessToPCores(pid uint32, mask uint64) error {
return fmt.Errorf("P-core affinity pinning is only supported on Windows (current OS: %s)", runtime.GOOS)
}
func EnableWHPXElevated() error {
return fmt.Errorf("WHPX elevation is only supported on Windows (current OS: %s)", runtime.GOOS)
}