Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-12 Thread Hari Bathini
Thanks for the review, Christophe. On 10/10/23 11:16 pm, Christophe Leroy wrote: Le 28/09/2023 à 21:48, Hari Bathini a écrit : patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instru

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-10 Thread Christophe Leroy
Le 28/09/2023 à 21:48, Hari Bathini a écrit : > patch_instruction() entails setting up pte, patching the instruction, > clearing the pte and flushing the tlb. If multiple instructions need > to be patched, every instruction would have to go through the above > drill unnecessarily. Instead, introd

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-07 Thread Christophe Leroy
Le 06/10/2023 à 18:22, Hari Bathini a écrit : > Hi Christophe, > > > On 29/09/23 2:09 pm, Christophe Leroy wrote: >> >> >> Le 28/09/2023 à 21:48, Hari Bathini a écrit : >>> patch_instruction() entails setting up pte, patching the instruction, >>> clearing the pte and flushing the tlb. If multip

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-06 Thread Hari Bathini
Thanks for the review, Song. On 29/09/23 2:38 am, Song Liu wrote: On Thu, Sep 28, 2023 at 12:48 PM Hari Bathini wrote: patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction wo

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-10-06 Thread Hari Bathini
Hi Christophe, On 29/09/23 2:09 pm, Christophe Leroy wrote: Le 28/09/2023 à 21:48, Hari Bathini a écrit : patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-09-29 Thread Christophe Leroy
Le 28/09/2023 à 21:48, Hari Bathini a écrit : > patch_instruction() entails setting up pte, patching the instruction, > clearing the pte and flushing the tlb. If multiple instructions need > to be patched, every instruction would have to go through the above > drill unnecessarily. Instead, introd

Re: [PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-09-28 Thread Song Liu
On Thu, Sep 28, 2023 at 12:48 PM Hari Bathini wrote: > > patch_instruction() entails setting up pte, patching the instruction, > clearing the pte and flushing the tlb. If multiple instructions need > to be patched, every instruction would have to go through the above > drill unnecessarily. Instead

[PATCH v5 1/5] powerpc/code-patching: introduce patch_instructions()

2023-09-28 Thread Hari Bathini
patch_instruction() entails setting up pte, patching the instruction, clearing the pte and flushing the tlb. If multiple instructions need to be patched, every instruction would have to go through the above drill unnecessarily. Instead, introduce function patch_instructions() that sets up the pte,