From: Juergen Gross Date: Tue, 9 Jun 2020 15:45:46 +0000 (+0200) Subject: xen/hypfs: fix loglvl parameter setting X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~86 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=ceaae74cedd2f7f8ae5c66b90da82f7ead206011;p=xen.git xen/hypfs: fix loglvl parameter setting Writing the runtime parameters loglvl or guest_loglvl omits setting the new length of the resulting parameter value. Reported-by: George Dunlap Signed-off-by: Juergen Gross Reviewed-by: Julien Grall Release-acked-by: Paul Durran --- diff --git a/xen/drivers/char/console.c b/xen/drivers/char/console.c index 56e24821b2..861ad53a8f 100644 --- a/xen/drivers/char/console.c +++ b/xen/drivers/char/console.c @@ -241,14 +241,25 @@ static int _parse_loglvl(const char *s, int *lower, int *upper, char *val) static int parse_loglvl(const char *s) { - return _parse_loglvl(s, &xenlog_lower_thresh, &xenlog_upper_thresh, - xenlog_val); + int ret; + + ret = _parse_loglvl(s, &xenlog_lower_thresh, &xenlog_upper_thresh, + xenlog_val); + custom_runtime_set_var(param_2_parfs(parse_loglvl), xenlog_val); + + return ret; } static int parse_guest_loglvl(const char *s) { - return _parse_loglvl(s, &xenlog_guest_lower_thresh, - &xenlog_guest_upper_thresh, xenlog_guest_val); + int ret; + + ret = _parse_loglvl(s, &xenlog_guest_lower_thresh, + &xenlog_guest_upper_thresh, xenlog_guest_val); + custom_runtime_set_var(param_2_parfs(parse_guest_loglvl), + xenlog_guest_val); + + return ret; } static char *loglvl_str(int lvl)