kexec: introduce kexec_ops struct
Hi,
Quoted 14 lines · Daniel Kiper
Quoted 13 lines · Jan Beulich
Quoted 11 lines
Quoted 6 lines
Quoted 1 line
Quoted 1 line · Daniel Kiper
Some kexec/kdump implementations (e.g. Xen PVOPS) on different archs could not use default functions or require some changes in behavior of kexec/kdump generic code. To cope with that problem
kexec_opsstruct was introduced. It allows a developer to replace all or some functions and control some functionality of kexec/kdump generic code.I'm not convinced that doing this at the architecture independent layer is really necessary/desirable. Nevertheless, if that's the right place, then everything else looks good to me, except for a cosmetic thing:
Quoted 7 lines
Quoted 4 lines
I do not like this patch, too. However, this is the simplest solution. If you do not do that in that way then you must duplicate most of
kernel/kexec.cfunctionality in architecture depndent files.It would have been a good idea to CC the maintainer of those files directly with at least this patch if not the whole series.
Thanks. I spotted later that maintainers are not in CC. I am going to prepare next version of patches with minor suggested fixes and repost them once again for review next week.
Quoted 4 lines
If they don't like this approach then there not much point in doing a thorough reviewing of the other 10 patches I don't think, since I would expect they will be required to change pretty substantially under those circumstances.
Sure.
Daniel