Skip to content

fix(vz): preserve the full CPU count in VM configurations - #288

Merged
Code-Hex merged 2 commits into
mainfrom
codex/preserve-cpu-count
Oct 27, 2026
Merged

Code-Hex merged 2 commits into
mainfrom
codex/preserve-cpu-count

Conversation

@Code-Hex

Copy link
Copy Markdown
Owner

CPU counts above 32 bits were truncated before reaching Virtualization.framework. For example, 4294967297 became 1, so Validate() accepted a configuration with a different CPU count from the one requested.

Pass the full value through the Go adapter to Apple's NSUInteger property. CPU limits remain enforced by Validate(). Add a regression test for a valid CPU count and a value that previously wrapped to it.

@Code-Hex
Code-Hex merged commit 4e06366 into main Oct 27, 2026
13 checks passed
@Code-Hex
Code-Hex deleted the codex/preserve-cpu-count branch October 27, 2026 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant