[PATCH v3 08/15] livepatch: separate enabled and patched states
Kamalesh Babulal
kamalesh at linux.vnet.ibm.com
Tue Jan 10 20:10:41 AEDT 2017
On Thursday 08 December 2016 11:38 PM, Josh Poimboeuf wrote:
> Once we have a consistency model, patches and their objects will be
> enabled and disabled at different times. For example, when a patch is
> disabled, its loaded objects' funcs can remain registered with ftrace
> indefinitely until the unpatching operation is complete and they're no
> longer in use.
>
> It's less confusing if we give them different names: patches can be
> enabled or disabled; objects (and their funcs) can be patched or
> unpatched:
>
> - Enabled means that a patch is logically enabled (but not necessarily
> fully applied).
>
> - Patched means that an object's funcs are registered with ftrace and
> added to the klp_ops func stack.
>
> Also, since these states are binary, represent them with booleans
> instead of ints.
>
> Signed-off-by: Josh Poimboeuf <jpoimboe at redhat.com>
Reviewed-by: Kamalesh Babulal <kamalesh at linux.vnet.ibm.com>
--
cheers,
Kamalesh.
More information about the Linuxppc-dev
mailing list