86/paravirt: Get rid of paravirt patching
Status from this message: The following commit has been merged into the x86/paravirt branch of tip:
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
Earlier versions · 3
| Version | Posted | Patches | Replies | Status |
|---|---|---|---|---|
| v3 | 5 patches | 6 replies | Superseded | |
| v2 | 4 patches | 5 replies | Superseded | |
| v1 RFC | 3 patches | 6 replies | Superseded |
Changes in v6 from the cover letter
- addressed Boris' comments
Patches in v6 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/5 | x86/paravirt: introduce ALT_NOT_XENarch/ arch/ | +21 | 1 reply | |
| 2/5 | x86/paravirt: move some functions and defines to alternativearch/ arch/ arch/ +5 more | +41 | 0 replies | |
| 3/5 | x86/alternative: add indirect call patchingarch/ arch/ | +64 | 0 replies | |
| 4/5 | x86/paravirt: switch mixed paravirt/alternative calls to alternative_2arch/ arch/ arch/ +3 more | +44 | 0 replies | |
| 5/5 | x86/paravirt: remove no longer needed paravirt patching codearch/ arch/ arch/ +4 more | +3 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Peter Zijlstra (Intel) |
|---|---|
| 1/5 | |
| 2/5 | |
| 3/5 | |
| 4/5 | A-b |
| 5/5 | A-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v6 0/5] 86/paravirt: Get rid of paravirt patching
This is a small series getting rid of paravirt patching by switching completely to alternative patching for the same functionality.
The basic idea is to add the capability to switch from indirect to direct calls via a special alternative patching option.
This removes _some_ of the paravirt macro maze, but most of it needs to stay due to the need of hiding the call instructions from the compiler in order to avoid needless register save/restore.
What is going away is the nasty stacking of alternative and paravirt patching and (of course) the special .parainstructions linker section.
I have tested the series on bare metal and as Xen PV domain to still work.
Note that objtool might need some changes to cope with the new indirect call patching mechanism. Additionally some paravirt handling can probably be removed from it.
Changes in V6:
- addressed Boris' comments
Changes in V5:
- addressed Boris' comments
- rebased on top of the tip/master branch
Changes in V4:
- addressed Boris' comments in patch 1
- fixed bugs found by kernel test robot (patch 2)
Changes in V3:
- split v2 patch 3 into 2 patches as requested by Peter and Ingo
Changes in V2:
- split last patch into 2
- rebase of patch 2 as suggested by Peter
- addressed Peter's comments for patch 3
Juergen Gross (5):
x86/paravirt: introduce ALT_NOT_XEN
x86/paravirt: move some functions and defines to alternative x86/alternative: add indirect call patching
x86/paravirt: switch mixed paravirt/alternative calls to alternative_2 x86/paravirt: remove no longer needed paravirt patching code
arch/x86/include/asm/alternative.h | 30 ++++- arch/x86/include/asm/paravirt.h | 77 ++++-------- arch/x86/include/asm/paravirt_types.h | 85 +++++--------- arch/x86/include/asm/qspinlock_paravirt.h | 4 +- arch/x86/include/asm/text-patching.h | 12 -- arch/x86/kernel/alternative.c | 136 +++++++++++----------- arch/x86/kernel/callthunks.c | 17 ++- arch/x86/kernel/kvm.c | 4 +- arch/x86/kernel/module.c | 20 +--- arch/x86/kernel/paravirt.c | 54 +-------- arch/x86/kernel/vmlinux.lds.S | 13 --- arch/x86/tools/relocs.c | 2 +- arch/x86/xen/irq.c | 2 +- 13 files changed, 169 insertions(+), 287 deletions(-)
Signature · 1 line
2.35.3