Skip to content

[codex] add Darwin virtio balloon support#42

Merged
Vbitz merged 2 commits into
mainfrom
codex/virtio-balloon-darwin
Jul 3, 2026
Merged

[codex] add Darwin virtio balloon support#42
Vbitz merged 2 commits into
mainfrom
codex/virtio-balloon-darwin

Conversation

@Vbitz

@Vbitz Vbitz commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Summary

Adds a Darwin/arm64 virtio-balloon MVP and exposes the balloon target as explicit API configuration via balloon_mb.

The device implements the basic virtio balloon inflate/deflate queues, snapshots its MMIO/config state, and reclaims Darwin HVF guest pages with MADV_FREE. Darwin runtime requests now load virtio_balloon and wire the device into FDT/MMIO for one-shot, persistent, and snapshot restore paths.

This also adds typed ccvmd request-normalization hooks for create/start/run requests so embedders like vmsh can apply policy after request decoding without rewriting HTTP bodies.

Validation

  • go test -tags embed_guestinit ./internal/vm -run TestRuntimeBootsLinuxWithHVFBalloon -count=1 -timeout 10m
  • go test ./ccvmd ./internal/ccvmd ./internal/vm -count=1
  • go test -short ./... -count=1 -timeout 30m
  • git diff --check

@Vbitz Vbitz force-pushed the codex/virtio-balloon-darwin branch 5 times, most recently from ee0fa2c to 19a6b4a Compare July 3, 2026 07:28
@Vbitz Vbitz force-pushed the codex/virtio-balloon-darwin branch from 19a6b4a to a8a8792 Compare July 3, 2026 09:59
@Vbitz Vbitz marked this pull request as ready for review July 3, 2026 10:03
@Vbitz Vbitz added this pull request to the merge queue Jul 3, 2026
Merged via the queue into main with commit f5379b3 Jul 3, 2026
11 checks passed
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