Skip to content

x86/paravirt: Rework paravirt patching

Thomas Gleixner lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 6 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3x86/paravirt: Remove bogus extern declarationsarch/x86/kernel/paravirt_patch_32.c arch/x86/kernel/paravirt_patch_64.c+0 -60 replies
2/3x86/paravirt: Unify 32/64 bit patch codearch/x86/kernel/Makefile arch/x86/kernel/paravirt_patch.c arch/x86/kernel/paravirt_patch_32.c +1 more+108 -1380 replies
3/3x86/paravirt: Replace paravirt patch asm magicarch/x86/include/asm/paravirt_types.h arch/x86/kernel/paravirt_patch.c+82 -6616 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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(-)