Re: [Xen-devel] [PATCH v1 2/3] livepatch: Include sizes when an mismatch occurs

2017-07-11 Thread Jan Beulich
>>> Konrad Rzeszutek Wilk 07/11/17 6:53 PM >>> >--- a/xen/common/livepatch.c >+++ b/xen/common/livepatch.c >@@ -520,8 +520,8 @@ static int prepare_payload(struct payload *payload, >ASSERT(sec); >if ( sec->sec->sh_size % sizeof(*payload->funcs) ) >{ >-dprintk(XENLOG_ERR, LIVE

[Xen-devel] [PATCH v1 2/3] livepatch: Include sizes when an mismatch occurs

2017-07-11 Thread Konrad Rzeszutek Wilk
If the .bug.frames.X or .livepatch.funcs sizes are different than what the hypervisor expects - we fail the payload. To help in diagnosing this include the expected and the payload sizes. Signed-off-by: Konrad Rzeszutek Wilk --- xen/common/livepatch.c | 9 + 1 file changed, 5 insertions(