[v1.10] Expose memory mapping; Make memfile dump optional#3
Draft
ValentaTomas wants to merge 15 commits intofirecracker-v1.10from
Draft
[v1.10] Expose memory mapping; Make memfile dump optional#3ValentaTomas wants to merge 15 commits intofirecracker-v1.10from
ValentaTomas wants to merge 15 commits intofirecracker-v1.10from
Conversation
Member
Author
|
We might also make the snapfile optional/return it as content instead. |
Member
|
bugbot run |
jakubno
requested changes
Dec 22, 2025
jakubno
reviewed
Dec 22, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
To gain more control over memfile handling during snapshotting, we modify the snapshot logic to optionally skip dumping the memfile.
Also, we add info about the memory regions when requesting instance info, so we can copy the memory directly.
This is fully compatible with FC v1.10.
This PR is for viewing code changes only and won't be merged.
Note
Adds GET /memory and /memory/mappings APIs for resident/empty page bitmaps and region mappings, and makes snapshot memory dump optional via mem_file_path.
GET /memoryandGET /memory/mappingsendpoints, parsing, and responses returningMemoryResponse(resident/empty bitmaps) andMemoryMappingsResponse.InstanceInfowith optionalmemory_regions; wire responses inParsedRequest::convert_to_response.firecracker.yaml) with new paths and definitions.GuestMemoryRegionMappingand methods to gather mappings and memory info usingmincoreand zero-page detection; validate uniform page size.CreateSnapshotParams.mem_file_path: Option<PathBuf>and dump memory only when provided.mincoresyscall in seccomp profiles (x86_64, aarch64)..tool-versions; update.gitignoreto include.env.Written by Cursor Bugbot for commit 6c05dd5. This will update automatically on new commits. Configure here.