-
Notifications
You must be signed in to change notification settings - Fork 301
feat(fc): drain virtio-balloon free-page-hinting before pause #2552
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
ValentaTomas
wants to merge
34
commits into
main
Choose a base branch
from
feat/sandbox-pause-fph
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
19c555b
feat(block): add generic StateTracker
ValentaTomas 02f8da8
refactor(uffd): swap pageTracker for block.StateTracker, add removed …
ValentaTomas 5896b7b
feat(uffd): add UFFD_EVENT_REMOVE handling with matrix tests
ValentaTomas d725d87
fix(uffd): hold settle Lock across PrefetchData read
ValentaTomas db978d4
fix(uffd): close read-vs-apply race with separate readSerial lock
ValentaTomas 4976810
feat(uffd): wire free-page-reporting through template build to FC bal…
ValentaTomas d82fc4c
fix(template-build): use fcInfo to auto-detect FreePageReporting in o…
ValentaTomas 50e2939
chore(uffd): trim comments for review
ValentaTomas 564a170
chore(template-build): trim narrating comments
ValentaTomas 2f6f62a
fix(uffd): propagate Removed pages into DiffMetadata.Empty
ValentaTomas 417ed97
chore: auto-commit generated changes
github-actions[bot] 7619cc9
feat(fc): drain virtio-balloon free-page-hinting before pause
ValentaTomas 8dec0b4
feat(uffd): wire free-page-reporting through template build to FC bal…
ValentaTomas 8907366
fix(template-build): use fcInfo to auto-detect FreePageReporting in o…
ValentaTomas a194833
chore(uffd): trim comments for review
ValentaTomas 8652309
chore(template-build): trim narrating comments
ValentaTomas 7f22709
fix(uffd): propagate Removed pages into DiffMetadata.Empty
ValentaTomas 9f57128
fix(template): drop unused freePageReporting proto field, trim verbos…
ValentaTomas 3ae7f06
fix(uffd): keep tracker Zero on read-fault zero install
ValentaTomas 81f86c1
Merge remote-tracking branch 'origin/main' into feat/uffd-fc-free-pag…
ValentaTomas a092da9
fix(uffd,template): address PR review
ValentaTomas ff748ea
Merge branch 'main' into feat/uffd-fc-free-page-reporting-integration
ValentaTomas 14f995f
fix(template): allow FPR with hugepages per FC 1.14 support
ValentaTomas a1b3a8f
Merge remote-tracking branch 'origin/feat/uffd-fc-free-page-reporting…
ValentaTomas 5e194cc
chore: trim PR diff for review
ValentaTomas eedb533
Merge branch 'main' into feat/uffd-fc-free-page-reporting-integration
ValentaTomas 18c592f
Merge branch 'feat/uffd-fc-free-page-reporting-integration' into feat…
ValentaTomas 7df828b
refactor(fc): rename enableFreePageReporting → installBalloon
ValentaTomas eaca70d
Merge branch 'feat/uffd-fc-free-page-reporting-integration' into feat…
ValentaTomas 10cfa66
feat(fph): split into install-time arm flag + kernel-targeted drain flag
ValentaTomas 95cd8d6
chore: auto-commit generated changes
github-actions[bot] f0486c1
fix(fph): drain on baseline-relative host_cmd bump
ValentaTomas 4e45815
rename(fph): FreePageHintingArmFlag → FreePageHintingInstallFlag
ValentaTomas 51ae406
Merge branch 'main' into feat/sandbox-pause-fph
ValentaTomas File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| package fc | ||
|
|
||
| import ( | ||
| "github.com/e2b-dev/infra/packages/shared/pkg/fcversion" | ||
| ) | ||
|
|
||
| // FCSupportsFreePageHinting reports whether the FC version's API exposes | ||
| // virtio-balloon free-page-hinting. Kernel-side eligibility (and the race-fix | ||
| // requirement) is targeted via LaunchDarkly with kernel-version context. | ||
| func FCSupportsFreePageHinting(fcVersion string) bool { | ||
| info, err := fcversion.New(fcVersion) | ||
| if err != nil { | ||
| return false | ||
| } | ||
|
|
||
| return info.HasFreePageHinting() | ||
| } |
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
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
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
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
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.