x86/paravirt: Rework paravirt patching
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest3 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | x86/paravirt: Remove bogus extern declarationsarch/ arch/ | +0 | 0 replies | |
| 2/3 | x86/paravirt: Unify 32/64 bit patch codearch/ arch/ arch/ +1 more | +108 | 0 replies | |
| 3/3 | x86/paravirt: Replace paravirt patch asm magicarch/ arch/ | +82 | 16 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [patch 0/3] x86/paravirt: Rework paravirt patching
Andi tried to make the paravirt patch magic work nicely with LTO. It turned out that the DEF_NATIVE() macro is clever but fragile. Even without LTO it works by chance and not by design.
As the paravirt patch tables are not changed frequently it's reasonable to convert them to regular data which is initialized with byte sequences.
Looking at Andi's attempt to change the existing code made me realize that there is no real reason to have two variants for 32 and 64 bit which just differ slightly.
The following series unifies the 32/64bit implementation and converts it to use regular data at the end.
Thanks,
tglx
8<--------------
a/arch/x86/kernel/paravirt_patch_32.c | 67 ------------------ a/arch/x86/kernel/paravirt_patch_64.c | 75 -------------------- arch/x86/include/asm/paravirt_types.h | 4 - arch/x86/kernel/Makefile | 4 - b/arch/x86/kernel/paravirt_patch.c | 126 ++++++++++++++++++++++++++++++++++ 5 files changed, 128 insertions(+), 148 deletions(-)