-
Notifications
You must be signed in to change notification settings - Fork 599
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
Support migration membarrier() PRIVATE_EXPEDITED registrations #2025
Conversation
0ac1569
to
8f05446
Compare
Please open the PR against the criu-dev branch. |
Hi @osctobe! please, rebase your branch against |
Codecov ReportPatch coverage has no change and project coverage change:
Additional details and impacted files@@ Coverage Diff @@
## criu-dev #2025 +/- ##
============================================
+ Coverage 70.57% 70.60% +0.02%
============================================
Files 133 133
Lines 33314 33319 +5
============================================
+ Hits 23513 23524 +11
+ Misses 9801 9795 -6
☔ View full report in Codecov by Sentry. |
I think this could use a test. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for a good PR! Please see some comments. And yes you need a zdtm test for it.
A friendly reminder that this PR had no activity for 30 days. |
f392ea1
to
4d137b8
Compare
Rebased and fixed. A test is attached. |
c9ef9a6
to
2c94bca
Compare
|
123557c
to
0e9d2e5
Compare
62740f8
to
4696602
Compare
7a21b14
to
6356ba6
Compare
94c6e7d
to
adc9753
Compare
Now we have MEMBARRIER_CMD_GET_REGISTRATIONS Should we start using it to solve this problem? |
MEMBARRIER_CMD_GET_REGISTRATIONS exists only on fairly new kernels. IMO it's better to merge this and then write a new PR to use MEMBARRIER_CMD_GET_REGISTRATIONS with this implementation as fallback. |
9ac945b
to
5ffd981
Compare
893378b
to
1a95fc2
Compare
Note: Silently drops MEMBARRIER_CMD_REGISTER_GLOBAL_EXPEDITED as it's not currently detectable. This is still better than silently dropping all membarrier() registrations. Signed-off-by: Michał Mirosław <[email protected]>
Signed-off-by: Michał Mirosław <[email protected]>
@avagin ping? BTW, I think even with the |
Still fails CI. I don't know about the Docker test but the other 2 are real failures. |
Merged with a few minor fixes. @osctobe I don't merge CL-s that have CI failures without explanations why they are unrelated to new changes. |
Probe registration of membarrier() for MEMBARRIER_CMD_PRIVATE_EXPEDITED* calls on dump and restore the registrations.
This is a best-effort implementation that ignores unknown modes. The proper migration of membarrier() needs kernel support for querying the state (currently e.g. registration for MEMBARRIER_CMD_GLOBAL_EXPEDITED is not possible to detect).