search for: patch_sync_don

Displaying 2 results from an estimated 2 matches for "patch_sync_don".

Did you mean: patch_sync_done
2020 Apr 08
0
[RFC PATCH 15/26] x86/alternatives: Non-emulated text poking
...system_state != SYSTEM_RUNNING) > + return -EINVAL; > + > + text_poke_state.stage = stage; > + text_poke_state.num_acks = cpumask_weight(cpu_online_mask); > + text_poke_state.head = &alt_modules; > + > + text_poke_state.patch_worker = worker; > + text_poke_state.state = PATCH_SYNC_DONE; /* Start state */ > + text_poke_state.primary_cpu = smp_processor_id(); > + > + /* > + * Run the worker on all online CPUs. Don't need to do anything > + * for offline CPUs as they come back online with a clean cache. > + */ > + ret = stop_machine(patch_worker, &te...
2020 Apr 08
0
[RFC PATCH 19/26] x86/alternatives: NMI safe runtime patching
On Tue, Apr 07, 2020 at 10:03:16PM -0700, Ankur Arora wrote: > @@ -1807,12 +1911,20 @@ static int __maybe_unused text_poke_late(patch_worker_t worker, void *stage) > text_poke_state.state = PATCH_SYNC_DONE; /* Start state */ > text_poke_state.primary_cpu = smp_processor_id(); > > + text_poke_state.nmi_context = nmi; > + > + if (nmi) > + register_nmi_handler(NMI_LOCAL, text_poke_nmi, > + NMI_FLAG_FIRST, "text_poke_nmi"); > /* > * Run the worker o...