|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [PATCH 2/2] xen/x86: Livepatch: support patching CET-enhanced functions
On 07/03/2022 14:03, Jan Beulich wrote: On 07.03.2022 12:53, Bjoern Doebel wrote:@@ -104,18 +122,36 @@ void noinline arch_livepatch_revive(void)int arch_livepatch_verify_func(const struct livepatch_func *func)
Linux has a sizeof_field() macro for this sort of use.
/**
* sizeof_field() - Report the size of a struct field in bytes
*
* @TYPE: The structure containing the field of interest
* @MEMBER: The field to return the size of
*/
#define sizeof_field(TYPE, MEMBER) sizeof((((TYPE *)0)->MEMBER))
David
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |