RFC jump_label, x86: Support variable sized JMP instructions
Get series with b4
b4 am [email protected]Versions newest first
- v1 RFC Latest8 patches 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/8 | x86/alternatives: Teach text_poke_bp() to emulate instructionsarch/ arch/ arch/ +1 more | +103 | 0 replies | |
| 2/8 | jump_label, x86: Strip ASM jump_label supportarch/ arch/ | +5 | 0 replies | |
| 3/8 | jump_label, x86: Factor out the __jump_table generationarch/ | +12 | 0 replies | |
| 4/8 | jump_label, x86: Remove init NOP optimizationarch/ | +4 | 0 replies | |
| 5/8 | jump_label, x86: Improve error when we fail expected textarch/ | +11 | 0 replies | |
| 6/8 | jump_label, x86: Add variable length patching supportarch/ arch/ arch/ | +53 | 0 replies | |
| 7/8 | jump_label, x86: Introduce jump_entry_size()arch/ arch/ include/ +1 more | +20 | 0 replies | |
| 8/8 | jump_label, x86: Enable JMP8/NOP2 supportarch/ arch/ | +35 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [RFC][PATCH 0/8] jump_label, x86: Support variable sized JMP instructions
After discussing jump_labels with Eugeny and Vineet the other day, I started playing with adding support for our 2 byte JMP/8 instruction. Much thanks to Josh for (re)discovering the .skip trick.
These patches boot an x86_64 defconfig in kvm, so it must be perfect.
Using the 2 byte jumps saves about ~6k text for an x86_64-defconfig build.