Resolve merge conflicts with main in frontend/src/i18n.ts and internal/i18n/i18n.go, migrate the 12 i18n keys added on main since branching (CoW backing chain diagnostics and About open-source license viewer) into locales/{zh-CN,en-US}/*.json, and regenerate catalogs via cmd/i18ngen.
Backend
- Per-VM CPU affinity (vmstart/affinity.go, affinity_flow.go): modes auto /
all / P-cores / non-LP-E / custom, saved in the VM folder, applied to the
QEMU process on start (GUI and CLI) and live via SetVMAffinity; copied on
clone. Start summary logs the resolved mapping. Host report gains CPU
topology helpers (mask <-> CPU list).
- Offline qcow2 restore points via qemu-img (driver/reims/snapshot.go,
snapshot_flow.go): list / create / restore / delete.
- SSH helpers (ssh_flow.go): remembered user, open a terminal, write an
~/.ssh/config entry, open VS Code Remote-SSH.
- FocusVMWindow brings the QEMU window forward (restoring it if minimized);
CopyVMScreenshot copies a full-resolution frame to the clipboard.
- DeliverPathsToGuest copies dropped host files into the shared folder;
main.go enables Wails file drop on elements marked --wails-drop-target.
- VM note (.reims-go-note) and a storage breakdown (extras_flow.go).
Frontend
- VM page: running state's "Show Window" and the screen preview use
FocusVMWindow; camera button and More-menu item copy a screenshot;
editable note under the name; SSH row shows the saved user with
Terminal / config / VS Code actions; restore-point list; install guide
steps can be ticked off; drop files onto the page to send them.
- Sidebar right-click menu per VM (start, show window, screenshot, stop,
restart, settings, folders, clone, delete); double-click and Ctrl+Enter
still run the main action.
- AffinityDialog opened from the VM menu and VM settings.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The host page's optimizations list gains a "Windows processor scheduling"
row: it shows whether Windows favours programs or background services
(Win32PrioritySeparation, read without elevation) and a button that opens
System Properties' Performance Options through one UAC prompt, so the
choice saves without a second one. Declining the prompt is not an error.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- `reims-ctl show` prints several displays as "displays 2, in 2 windows
...", which was read as one display, so the panel saw no change when
the count was set back to 1 and refused to save it.
- The resolution was never read back: the pattern used was anchored to a
whole value and never matched the display line, so the panel always
showed 1920x1080.
- The settings panel took its values once on open; it now follows a newer
VM detail until the person edits something (reopening right after a
save showed the old values).
- Full screen is now a card among the resolutions instead of a separate
switch; HiDPI sizes say what they look like, and the advice on getting
HiDPI sits under the cards.
Checked with macos-tahoe: set to 2 displays at 1680x1050 outside the app,
the panel showed both; picking 1 saved and read back as 1.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
When macOS shut down or QEMU quit on its own, reims-go had issued no
stop, so it only saw the VM stopped at its next steady poll, up to 5 s
later. Now pollVMs waits on each running QEMU process handle and wakes
the poll the moment the process exits; a PID is only waited on while it
names qemu-system-x86_64.exe, so a reused PID is not mistaken for the VM.
Measured with macos-tahoe and QMP quit: the window got the state change
51 ms after QEMU exited. Off Windows the steady poll remains.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Presets were flagged HiDPI by screen width alone, so a 2880x1800 preset
read "HiDPI" on a 100% screen where macOS runs it at 1x, and a VM left at
the 1920x1080 default ran 1x on a 200% screen.
- GuestStartsHiDPI follows upstream reims-vgpu 3731afd
(RgfxDisplayIdentity.hpp, reims-vgpu-window features.md): HiDPI from a
2048x1536 window above 160 ppi (150% scaling or more), or from
3840x2160 at any scale.
- Presets are the 16:9 or 16:10 sizes that fit the screen's work area
below a title bar, largest four; the largest HiDPI one is recommended.
The display probe now reports the work area.
- When no preset is HiDPI, the resolution row says how to get there:
borderless full screen, 150% Windows scaling, or not on this screen.
On this host (3072x1920 at 200%) the presets are 2560x1600 (HiDPI,
recommended), 1920x1200, 1680x1050 and 1280x800.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The VM page made the shell spawn about 84 reims-ctl processes a minute
and pull a full 4K screendump every 5 s while a VM ran.
- Scale reads *image.RGBA Pix directly: a 4K frame drops from ~80 ms
and 8.3M allocations to ~10 ms and 2.
- Thumbnails refresh every 15 s and skip the screendump while the VM's
own window is in the foreground.
- pollVMs polls every 2 s only while a VM starts or stops, else every
5 s; start, stop and delete wake it at once.
- Stats, thumbnails and the heartbeat reuse the polled list instead of
running their own `reims-ctl list`; the disk path from `show` is kept
for a minute.
Measured with two windows on the VM page: 67 -> 13 reims-ctl spawns a
minute.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- "Send text to VM..." dialog: arbitrary Unicode goes through Guest Tools
(clipboard paste in the guest, agent v3 /v1/text-input long poll); without
Guest Tools only US-keyboard ASCII is typed via QMP.
- Host IME / dictation: a low-level keyboard hook (internal/host/ime_*) catches
VK_PACKET input aimed at a running VM window, coalesces bursts and forwards
them in order through a per-VM queue (type_flow.go).
- reims-vgpu-window bridge: new runtime patch reims-vgpu-win32-unicode-input
enables SDL text input and posts committed text to /v1/host-text; StartVM
passes REIMS_GO_INPUT_URL/TOKEN to the window process. This also adds the
patch file that patches/series.txt already listed.
- Guest Tools auth returns a field snapshot instead of copying the VM entry
(it now holds a mutex and text queues).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Detect 3-tier hybrid CPUs (P + E + LP-E, e.g. Intel Core Ultra 200 Arrow Lake) in host topology probe and select NonLPEMask (P+E, excluding slow LP-E cores) when VM vCPUs exceed P-core thread headroom
- Migrate Win10 cold-reboot secondary QMP socket from tcp:127.0.0.1:<port> to Windows AF_UNIX (reims-go-reboot.sock, with short tmp fallback) so guest code cannot reach unauthenticated QMP via SLIRP 10.0.2.2
- Automatically strip legacy tcp:127.0.0.1 QMP args on next start and update roadmap M3.2
- Default newly created VMs to NVMe disk controller via reims-ctl set (supported by macOS Recovery, installer, and installed guests)
- Guard P-core affinity pinning with CanSafelyPinPCores (require P-core logical CPUs >= vmCPUs+1) to prevent XNU spinlock stalls on non-HT hybrid CPUs such as Intel Core Ultra 9 285H (6P/6T + 8E), and include logical thread counts in CPU pinning logs
- Add patches/qemu-whpx-nested-virt-nonfatal.patch (registered in patches/README.md & docs/portable-runtime-spec.md) to make WHvSetPartitionProperty(NestedVirtualization) hr=0x80370302 non-fatal so Win11 retains kernel-irqchip=on, and detect the patch in host optimizations and WHPX compat pre-apply
- New VMs default to an offline installer of one exact release
(`reims-ctl create --macos <ver> --offline --network false`); the wizard
lists Apple's releases, marks downloaded ones and warns when space is short.
- Offline VMs get an install guide with the install-macos.sh command and a
"Finish install" action that ejects the installer and turns the network on
(FinishInstall; pending until the next start on a running VM).
- Installers page (roadmap M2.2): downloaded installers with resume/delete,
Apple's releases with download, progress and pause, space check first.
- Commit memory: the host report carries Windows' commit limit and available
commit; create/settings refuse memory over the limit, start refuses memory
that can't be committed now with a clear message, and the wizard, settings
and first launch show a recommended size (16G failed with 14.7 GiB free).
- First launch shows a host check (WHPX with enable, Vulkan GPU, memory)
before the runtime install.
- Create validation rejects a VM name that already exists.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Runtime: list and fetch runtimes from this repo's GitHub Releases
(stable by default, candidate on request), with SHA256 check and resume.
CLI gains `runtime available` and `runtime fetch`; the host page gets an
online install row and a "receive candidates" switch.
- First launch: pick a data folder (non-system drives first, USB never
recommended); the choice is recorded in %APPDATA%\reims-go\location.json.
Existing installs in the default folder are adopted without asking.
- pack-runtime.ps1: also builds the matching source package, records every
patch with its SHA256 and the channel, and refuses undeclared changes in
the build trees.
- patches: declare reims-vgpu-cargo-lock.patch (Cargo.lock source lines).
- UI: sidebar and VM page restyle, new design tokens.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Offline installers (roadmap M1.3):
- internal/installer drives `reims-util --json offline-installer` and parses
its JSON event stream (upstream reims-vgpu 3731afd, reims_util.rs:423-509)
- downloads hold installers/.lock like reims-ctl, so the two never write the
same file; checked against the real reims-ctl (TestLockExcludesReimsCtl)
- pause = stop the process, rerun resumes; deletes go through
`reims-ctl downloads delete`, which refuses files in use or downloading
- CLI: reims-go installer list | download | cached | delete
- Wails bindings: ListOfflineReleases, DownloadInstaller, ListInstallers,
DeleteInstaller
Task events (ui-redesign B1):
- tasks.go tracks long-running work and emits "reims:task" (throttled to
200 ms per task); VM creation turns reims-ctl's progress lines into task
progress and logs each step once
- the status bar shows the current task with a progress bar, details in a
tooltip and a pause button; the frontend regex merging is removed
Win10 cold reboot workaround:
- host probes whether WinHvPlatform.dll lacks WHvResetPartition (Win10 19045)
- internal/qmp watches a dedicated QMP channel for guest resets; with
-no-reboot the app restarts the VM in a fresh partition
- architecture.md documents download routing and the workaround
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Wails shell over the existing Go core (app.go, main.go, wails.json,
build/), with a React frontend for the VM list, VM detail, host page,
create wizard and settings, plus process helpers for the driver and
runtime packages.
UI redesign stage 0 (docs/ui-redesign.md):
- VM actions live in the page header: one primary action per state,
icon-only secondary actions with tooltips, the rest in a "..." menu
- install guide is a single card with the only "eject installer" button
- summary is an icon + value row; paths, ICD, CPU model and runtime hash
moved to a collapsed "technical details" section
- logs no longer auto-open; a status bar shows merged download progress
and an error count; the log view sticks to the bottom
- busy states on actions, toasts for results, custom delete dialog with
"keep disk files"
- design tokens, Windows font stack, integer type scale, no inline styles
- keyboard: sidebar listbox navigation, focus rings, Ctrl+N / Ctrl+, / Ctrl+L
- copy rewritten per the restraint rules in §4.5
- Radix primitives and lucide icons replace hand-rolled widgets
Backend: OpenVMFolder binding to show a VM's directory in Explorer.
Docs: shell-design.md revised for decisions D1 and D4.
Vite dev server pinned to 127.0.0.1 so `wails dev` can reach it.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>