Re: [RFC PATCH 6/6] x86/jump_label,x86/alternatives: Batch jump label transformations

2018-10-11 Thread Daniel Bristot de Oliveira
On 10/10/18 10:17 PM, Steven Rostedt wrote: > On Mon, 8 Oct 2018 14:53:05 +0200 > Daniel Bristot de Oliveira wrote: > >> diff --git a/arch/x86/include/asm/jump_label.h >> b/arch/x86/include/asm/jump_label.h >> index 8c0de4282659..d61c476046fe 100644 >> --- a/arch/x86/include/asm/jump_label.h >>

Re: [RFC PATCH 6/6] x86/jump_label,x86/alternatives: Batch jump label transformations

2018-10-10 Thread Steven Rostedt
On Mon, 8 Oct 2018 14:53:05 +0200 Daniel Bristot de Oliveira wrote: > diff --git a/arch/x86/include/asm/jump_label.h > b/arch/x86/include/asm/jump_label.h > index 8c0de4282659..d61c476046fe 100644 > --- a/arch/x86/include/asm/jump_label.h > +++ b/arch/x86/include/asm/jump_label.h > @@ -15,6 +15

Re: [RFC PATCH 6/6] x86/jump_label,x86/alternatives: Batch jump label transformations

2018-10-08 Thread Daniel Bristot de Oliveira
On 10/8/18 4:33 PM, Jason Baron wrote: > On 10/08/2018 08:53 AM, Daniel Bristot de Oliveira wrote: >> A static key, changing from enabled->disabled/disabled->enabled causes >> the code to be changed, and this is done in three steps: >> >> -- Pseudo-code #1 - Current implementation --- >> For each k

Re: [RFC PATCH 6/6] x86/jump_label,x86/alternatives: Batch jump label transformations

2018-10-08 Thread Jason Baron
On 10/08/2018 08:53 AM, Daniel Bristot de Oliveira wrote: > A static key, changing from enabled->disabled/disabled->enabled causes > the code to be changed, and this is done in three steps: > > -- Pseudo-code #1 - Current implementation --- > For each key to be updated: > 1) add an int3 tra

[RFC PATCH 6/6] x86/jump_label,x86/alternatives: Batch jump label transformations

2018-10-08 Thread Daniel Bristot de Oliveira
A static key, changing from enabled->disabled/disabled->enabled causes the code to be changed, and this is done in three steps: -- Pseudo-code #1 - Current implementation --- For each key to be updated: 1) add an int3 trap to the address that will be patched sync cores (se