Re: [Xen-devel] [PATCH v2 1/3] console: allow log level threshold adjustments

2016-03-07 Thread Jan Beulich
>>> On 07.03.16 at 15:41, wrote: > On Mon, Mar 7, 2016 at 5:44 AM, Jan Beulich wrote: > On 04.03.16 at 21:55, wrote: +case XEN_SYSCTL_LOGLVL_set: +if ( (op->host.lower_thresh >= 0 && op->host.upper_thresh >= 0 && + op->host.lower_thresh > op->host.uppe

Re: [Xen-devel] [PATCH v2 1/3] console: allow log level threshold adjustments

2016-03-07 Thread Konrad Rzeszutek Wilk
On Mon, Mar 7, 2016 at 5:44 AM, Jan Beulich wrote: On 04.03.16 at 21:55, wrote: >>> +case XEN_SYSCTL_LOGLVL_set: >>> +if ( (op->host.lower_thresh >= 0 && op->host.upper_thresh >= 0 && >>> + op->host.lower_thresh > op->host.upper_thresh) || >>> + (op->gues

Re: [Xen-devel] [PATCH v2 1/3] console: allow log level threshold adjustments

2016-03-07 Thread Jan Beulich
>>> On 04.03.16 at 21:55, wrote: >> +case XEN_SYSCTL_LOGLVL_set: >> +if ( (op->host.lower_thresh >= 0 && op->host.upper_thresh >= 0 && >> + op->host.lower_thresh > op->host.upper_thresh) || >> + (op->guest.lower_thresh >= 0 && op->guest.upper_thresh >= 0 && >>

Re: [Xen-devel] [PATCH v2 1/3] console: allow log level threshold adjustments

2016-03-04 Thread Konrad Rzeszutek Wilk
> +static void do_inc_thresh(unsigned char key, struct cpu_user_regs *regs) > +{ > +++*lower_thresh_adj; > +do_adj_thresh(key); > +} > + > +static void do_dec_thresh(unsigned char key, struct cpu_user_regs *regs) > +{ > +if ( *lower_thresh_adj ) > +--*lower_thresh_adj; > +do