Skip to content

feat(snapshot): Allow overriding huge-page configuration on restore - #6064

Draft
lisasgoh wants to merge 1 commit into
firecracker-microvm:mainfrom
lisasgoh:feat/snapshot-load-huge-pages
Draft

feat(snapshot): Allow overriding huge-page configuration on restore#6064
lisasgoh wants to merge 1 commit into
firecracker-microvm:mainfrom
lisasgoh:feat/snapshot-load-huge-pages

Conversation

@lisasgoh

@lisasgoh lisasgoh commented Jul 28, 2026

Copy link
Copy Markdown

Changes

Closes #6036

Add an optional huge_pages override to PUT /snapshot/load.

  • Supports None, Transparent, and 2M.
  • Preserves the snapshot’s configuration when omitted.
  • Rejects 2M with file-backed restore; UFFD is required.

Reason

Host page configuration does not affect guest-visible snapshot contents. Allowing it to be selected during restore avoids creating duplicate snapshots for each desired backing-page configuration.

License Acceptance

By submitting this pull request, I confirm that my contribution is made under
the terms of the Apache 2.0 license. For more information on following Developer
Certificate of Origin and signing off your commits, please check
CONTRIBUTING.md.

PR Checklist

  • I have read and understand CONTRIBUTING.md.
  • I have run tools/devtool checkbuild --all to verify that the PR passes
    build checks on all supported architectures.
  • I have run tools/devtool checkstyle to verify that the PR passes the
    automated style checks.
  • I have described what is done in these changes, why they are needed, and
    how they are solving the problem in a clear and encompassing way.
  • I have updated any relevant documentation (both in code and in the docs)
    in the PR.
  • I have mentioned all user-facing changes in CHANGELOG.md.
  • If a specific issue led to this PR, this PR closes the issue.
  • When making API changes, I have followed the
    Runbook for Firecracker API changes.
  • I have tested all new and changed functionalities in unit tests and/or
    integration tests.
  • I have linked an issue to every new TODO.

  • This functionality cannot be added in rust-vmm.

@lisasgoh lisasgoh changed the title Add toggle for restoring snapshot with huge pages feat(snapshot): Allow overriding huge-page configuration on restore Jul 28, 2026
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.

[Feature Request] Allow overriding huge-page configuration during snapshot restore

1 participant