-
Notifications
You must be signed in to change notification settings - Fork 83
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
SIMD-0093: Disable bpf loader (V2) instructions #93
SIMD-0093: Disable bpf loader (V2) instructions #93
Conversation
6d378c7
to
488b251
Compare
488b251
to
1be9a5b
Compare
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.
Some nits
|
||
## Summary | ||
|
||
Add a new feature to disable Bpf loader V2 program deployment. |
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.
I know in the Solana Labs code we call these feature gates. Maybe this is sufficiently client-agnostic and should be used here too?
Add a new feature to disable Bpf loader V2 program deployment. | |
Add a new feature gate to disable Bpf loader V2 program deployment. |
Or even remove "feature" entirely:
Disable BPF Loader V2 for program deployment.
I think that's my preferred one.
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.
We use the same terminology and feature gating structure on FD
## Motivation | ||
|
||
We want to deprecate the usage of *executable* metadata on account for program | ||
runtime. The new variant of Bpf loader (i.e. V3/V4 etc.) no longer requires | ||
*executable* metadata. However, the old Bpf loader (v2) still use *executable* | ||
metadata during its program deployment. And this is a blocker for deprecating | ||
the usage of *executable* metadata for program runtime. Therefore, as we are | ||
migrating from the old Bpf loader V2 to the new Bpf loader (V3/V4), we are going | ||
to add a feature to disable old V2 Bpf program deployment so that we can | ||
activate the feature and deprecate *executable* metadata in program runtime for | ||
the new kinds of Bpf loaders. |
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.
The current wording requires that the reader knows what "executable metadata" is. Wdyt about first defining what "executable metadata" is?
Co-authored-by: Brooks <[email protected]>
Co-authored-by: Brooks <[email protected]>
Co-authored-by: Brooks <[email protected]>
Co-authored-by: Brooks <[email protected]>
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.
Approved
I will merge this SIMD, barring core contributor objections, on 11/01/2024, or as soon as labs signs off. |
I don't have write access to this repo. Can someone with write access to merge the PR? |
Looks like we've reached consensus. Thanks @HaoranYi! |
Looks good! |
Add disable bpf loader (V2) instructions simd