lkml.org 
[lkml]   [2019]   [Apr]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subject[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(-)


\
 
 \ /
  Last update: 2019-04-24 15:47    [W:0.086 / U:0.060 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site