* Re: [PATCH] xen: sched: use default scheduler upon an invalid "sched="
2016-06-17 10:31 [PATCH] xen: sched: use default scheduler upon an invalid "sched=" Dario Faggioli
@ 2016-06-17 10:55 ` Andrew Cooper
2016-06-17 13:42 ` Jonathan Creekmore
` (3 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Andrew Cooper @ 2016-06-17 10:55 UTC (permalink / raw)
To: Dario Faggioli, xen-devel
Cc: George Dunlap, Jonathan Creekmore, Doug Goldstein, Jan Beulich
On 17/06/16 11:31, Dario Faggioli wrote:
> instead of just the first scheduler we find in the array.
>
> In fact, right now, if someone makes a typo when passing
> the "sched=" command line option to Xen, we (with all
> schedulers configured in) pick ARINC653, which is most
> likely not what one would expect.
>
> Go for the default scheduler instead.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Doug Goldstein <cardoe@cardoe.com>
> Cc: Jonathan Creekmore <jonathan.creekmore@gmail.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] xen: sched: use default scheduler upon an invalid "sched="
2016-06-17 10:31 [PATCH] xen: sched: use default scheduler upon an invalid "sched=" Dario Faggioli
2016-06-17 10:55 ` Andrew Cooper
@ 2016-06-17 13:42 ` Jonathan Creekmore
2016-06-17 14:06 ` George Dunlap
` (2 subsequent siblings)
4 siblings, 0 replies; 6+ messages in thread
From: Jonathan Creekmore @ 2016-06-17 13:42 UTC (permalink / raw)
To: Dario Faggioli, xen-devel; +Cc: George Dunlap, Doug Goldstein, Jan Beulich
> On Jun 17, 2016, at 5:31 AM, Dario Faggioli <dario.faggioli@citrix.com> wrote:
>
> instead of just the first scheduler we find in the array.
>
> In fact, right now, if someone makes a typo when passing
> the "sched=" command line option to Xen, we (with all
> schedulers configured in) pick ARINC653, which is most
> likely not what one would expect.
>
> Go for the default scheduler instead.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Doug Goldstein <cardoe@cardoe.com>
> Cc: Jonathan Creekmore <jonathan.creekmore@gmail.com>
Reviewed-By: Jonathan Creekmore <jonathan.creekmore@gmail.com>
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] xen: sched: use default scheduler upon an invalid "sched="
2016-06-17 10:31 [PATCH] xen: sched: use default scheduler upon an invalid "sched=" Dario Faggioli
2016-06-17 10:55 ` Andrew Cooper
2016-06-17 13:42 ` Jonathan Creekmore
@ 2016-06-17 14:06 ` George Dunlap
2016-06-17 14:07 ` Doug Goldstein
2016-06-17 14:27 ` Wei Liu
4 siblings, 0 replies; 6+ messages in thread
From: George Dunlap @ 2016-06-17 14:06 UTC (permalink / raw)
To: Dario Faggioli, xen-devel
Cc: George Dunlap, Jonathan Creekmore, Doug Goldstein, Jan Beulich
On 17/06/16 11:31, Dario Faggioli wrote:
> instead of just the first scheduler we find in the array.
>
> In fact, right now, if someone makes a typo when passing
> the "sched=" command line option to Xen, we (with all
> schedulers configured in) pick ARINC653, which is most
> likely not what one would expect.
>
> Go for the default scheduler instead.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
Acked-by: George Dunlap <george.dunlap@citrix.com>
I'll check it in here shortly.
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] xen: sched: use default scheduler upon an invalid "sched="
2016-06-17 10:31 [PATCH] xen: sched: use default scheduler upon an invalid "sched=" Dario Faggioli
` (2 preceding siblings ...)
2016-06-17 14:06 ` George Dunlap
@ 2016-06-17 14:07 ` Doug Goldstein
2016-06-17 14:27 ` Wei Liu
4 siblings, 0 replies; 6+ messages in thread
From: Doug Goldstein @ 2016-06-17 14:07 UTC (permalink / raw)
To: Dario Faggioli, xen-devel; +Cc: George Dunlap, Jonathan Creekmore, Jan Beulich
[-- Attachment #1.1.1: Type: text/plain, Size: 702 bytes --]
On 6/17/16 5:31 AM, Dario Faggioli wrote:
> instead of just the first scheduler we find in the array.
>
> In fact, right now, if someone makes a typo when passing
> the "sched=" command line option to Xen, we (with all
> schedulers configured in) pick ARINC653, which is most
> likely not what one would expect.
>
> Go for the default scheduler instead.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Doug Goldstein <cardoe@cardoe.com>
> Cc: Jonathan Creekmore <jonathan.creekmore@gmail.com>
Reviewed-by: Doug Goldstein <cardoe@cardoe.com>
--
Doug Goldstein
[-- Attachment #1.2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 959 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] xen: sched: use default scheduler upon an invalid "sched="
2016-06-17 10:31 [PATCH] xen: sched: use default scheduler upon an invalid "sched=" Dario Faggioli
` (3 preceding siblings ...)
2016-06-17 14:07 ` Doug Goldstein
@ 2016-06-17 14:27 ` Wei Liu
4 siblings, 0 replies; 6+ messages in thread
From: Wei Liu @ 2016-06-17 14:27 UTC (permalink / raw)
To: Dario Faggioli
Cc: Wei Liu, George Dunlap, Jonathan Creekmore, Doug Goldstein,
Jan Beulich, xen-devel
On Fri, Jun 17, 2016 at 12:31:00PM +0200, Dario Faggioli wrote:
> instead of just the first scheduler we find in the array.
>
> In fact, right now, if someone makes a typo when passing
> the "sched=" command line option to Xen, we (with all
> schedulers configured in) pick ARINC653, which is most
> likely not what one would expect.
>
> Go for the default scheduler instead.
>
> Signed-off-by: Dario Faggioli <dario.faggioli@citrix.com>
> ---
> Cc: George Dunlap <george.dunlap@eu.citrix.com>
> Cc: Jan Beulich <jbeulich@suse.com>
> Cc: Doug Goldstein <cardoe@cardoe.com>
> Cc: Jonathan Creekmore <jonathan.creekmore@gmail.com>
> ---
> I don't think I'm going to ask for this to be put in 4.7,
> as I don't want to give Wei an heart attack... :-)
>
I will just say "Meh, let's backport this." :-P
> Considering it for backporting should be enough, IMO.
> ---
> xen/common/schedule.c | 3 ++-
> 1 file changed, 2 insertions(+), 1 deletion(-)
>
> diff --git a/xen/common/schedule.c b/xen/common/schedule.c
> index 5e35310..7ac12d3 100644
> --- a/xen/common/schedule.c
> +++ b/xen/common/schedule.c
> @@ -1625,7 +1625,8 @@ void __init scheduler_init(void)
> {
> printk("Could not find scheduler: %s\n", opt_sched);
> for ( i = 0; i < NUM_SCHEDULERS; i++ )
> - if ( schedulers[i] )
> + if ( schedulers[i] &&
> + !strcmp(schedulers[i]->opt_name, CONFIG_SCHED_DEFAULT) )
> {
> ops = *schedulers[i];
> break;
>
>
> _______________________________________________
> Xen-devel mailing list
> Xen-devel@lists.xen.org
> http://lists.xen.org/xen-devel
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread