Skip to content

crosvm: Guard socket cleanup, add hugepage, vhost-net and initial balloon sizing - #640

Merged
SuperSandro2000 merged 4 commits into
microvm-nix:mainfrom
stephan-gh:crosvm
Nov 19, 2026
Merged

SuperSandro2000 merged 4 commits into
microvm-nix:mainfrom
stephan-gh:crosvm

Conversation

@stephan-gh

Copy link
Copy Markdown
Contributor

(see individual commits)

Setting socket to null fails when generating preStart because the cleanup
command evaluates it unconditionally. Fix this by guarding the command with
a socket != null check, similar to the implementation in cloud-hypervisor.
crosvm supports a --hugepages switch to advise the kernel to use
transparent hugepages. Pass --hugepages when requested in the configuration
and document the difference compared to cloud-hypervisor.
crosvm supports TAP vhost-net acceleration similar to QEMU, but currently
tap.vhost is ignored for crosvm. Add the per-interface vhost-net flag and
document crosvm support plus the required host device access.
crosvm can set the initial balloon through --init-mem. Pass the memory
outside the balloon (mem minus initialBalloonMem) and reject sizes larger
than mem.
@SuperSandro2000
SuperSandro2000 merged commit d702659 into microvm-nix:main Nov 19, 2026
23 of 26 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.

2 participants