Re: [PATCH v4 09/16] x86/alternative: Remove text_poke_loc::len

2019-10-21 Thread Ingo Molnar
* Ingo Molnar wrote: > > * Peter Zijlstra wrote: > > > * Second step: update all but the first byte of the patched range. > > */ > > for (do_sync = 0, i = 0; i < nr_entries; i++) { > > - if (tp[i].len - sizeof(int3) > 0) { > > + int len = text_opcode_size(tp

Re: [PATCH v4 09/16] x86/alternative: Remove text_poke_loc::len

2019-10-21 Thread Ingo Molnar
* Peter Zijlstra wrote: >* Second step: update all but the first byte of the patched range. >*/ > for (do_sync = 0, i = 0; i < nr_entries; i++) { > - if (tp[i].len - sizeof(int3) > 0) { > + int len = text_opcode_size(tp[i].opcode); > + > +