|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v3 09/16] xen/arm: Introduce alternative runtime patching
Hi Konrad, On 07/06/2016 18:24, Konrad Rzeszutek Wilk wrote:
Will do. + write_atomic(&patched, 1); + } + + return 0; +} + +/* + * This function should only be called during boot and before CPU0 jumpWould it make sense to then have an ASSERT or BUG on: SYS_STATE_early_boot ? No need, this function is part of __init. Anyone calling this function after boot will crash the hypervisor :). + * into the idle_loop. + */ +void __init apply_alternatives_all(void)s/apply_alternatives_all/apply_alternatives_init/ ? I think _all makes more sense because we apply all the alternatives to the hypervisor.
It contains an hard tab. I will fix it in the next version. + ret = stop_machine_run(__apply_alternatives_multi_stop, NULL, NR_CPUS); + + /* stop_machine_run should never fail at this stage of the boot */Missing stpo. ok. + BUG_ON(ret); +} +..snip.. Yes, I looked at the x86 code when I did the implement and I did not find any good reason to keep .altinstr_replace inside the inittext. altinstr_replacement contains replacement instructions. Anything inside the inittext region will be mark executable, which is not what we want here. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |