Enumerate Windows display adapters via SetupAPI (DIGCF_PRESENT) and CfgMgr32 (CM_Get_DevNode_Status: DN_STARTED, no DN_HAS_PROBLEM, no DN_WILL_BE_REMOVED) instead of blindly scanning Control\Class\{4d36e968-...}\0000..0031, so unplugged (phantom) and disabled GPUs whose DriverStore ICD files still remain on disk are no longer listed as available GPUs. Also reuse active adapter filtering for DriverStore manifest recovery and prevent MergeRegistryAndVulkanGPUs from cross-matching distinct PCI devices by generic name.
- Add per-VM `capture_host_shortcuts` option persisted in `.reims-go-keymap.json`
(independent from modifier preset and backward-compatible with legacy configs
and Wails callers omitting the field). When enabled, unmapped Win and Alt keys
route through the existing Guest Tools v8 hidutil carrier (`lcmd`/`rcmd`/`lopt`/
`ropt`) while the VM is focused, preventing host Win/Alt shortcuts (e.g. PixPin
Alt+A, Alt+Tab, Alt+F4, Ctrl+Alt+A, Win+...) without modifying explicit custom
bindings or bumping Guest Tools version.
- Monitor `EVENT_SYSTEM_FOREGROUND` and `EVENT_OBJECT_NAMECHANGE` on the Windows
keymap hook thread to immediately release held modifiers on focus loss and
promote `WH_KEYBOARD_LL` back to the top of the hook chain on VM focus entry
and SDL3 in-window re-capture, with per-key timestamp filtering for delayed
focus-loss events, swap-window event deduplication, Win64 32-bit parameter
narrowing, and fallback timer recovery.
- Serialize `SetVMKeymap` read-merge-save under `keymapMu`, expose the toggle in
Settings with zh-CN/en-US i18n, and add Go + frontend unit tests.
The start check, start wait, memory recommendation and create/settings
validation compared guest RAM against GlobalMemoryStatusEx's current
commit limit. A system-managed or min/max page file grows on demand, so
that limit refused VMs that would start: with 30.7/37.4 GB committed an
8G guest was rejected while about 38 GB could still be committed.
Read each paging file's current and maximum size with
NtQuerySystemInformation(SystemPageFileInformationEx) and add the room
it can still grow, capped by its volume's free space minus a 2 GB
reserve. Fixed-size or disabled page files add nothing; if the query
fails the old values stand. Measured on Windows 10: one commit of free
commit + 10 GB (VirtualAlloc and CreateFileMapping) succeeded and grew
the limit from 37.4 to 47.4 GB.
The start error now names the total requirement and the guest share and
says page file growth is already counted; the host report gains
paging_file_growth_gb.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Adapt Intel VM suspend/resume to driver.SuspendDriver and lifecycle.Service, move native VM close confirmation into internal/host, migrate vm-suspend legacy capability detection, drop moved runtime build tooling, and regenerate i18n and Wails bindings.
Route generic App and CLI code through lifecycle and driver models. Move native macOS detail, create, settings and legacy flows into explicit files, share progress and redaction through host, and enforce the boundary with a file-scoped architecture ratchet.
Share redaction and GPU log diagnosis outside the macOS client, move snapshot validation to the driver contract, and delete superseded App storage implementations.
Build Guest Tools images in the macOS driver after all start hooks pass, through a host callback rather than a new macOS-to-guesttools dependency.
Add driver.OptimizationAdvisor, keep generic hardware evaluation in host, and move WHPX recommendations and tests into macosdriver for both the UI and diagnostics.
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>