xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Juergen Gross <jgross@suse.com>
To: Jonathan Creekmore <jonathan.creekmore@gmail.com>,
	Andrew Cooper <andrew.cooper3@citrix.com>
Cc: George Dunlap <george.dunlap@eu.citrix.com>,
	xen-devel@lists.xenproject.org,
	Dario Faggioli <dario.faggioli@citrix.com>
Subject: Re: [PATCH v3 2/5] build: Hook the schedulers into Kconfig
Date: Fri, 8 Jan 2016 17:13:01 +0100	[thread overview]
Message-ID: <568FE00D.6080906@suse.com> (raw)
In-Reply-To: <m2d1tc3vr5.fsf@Nebula.lan>

On 08/01/16 17:02, Jonathan Creekmore wrote:
> 
> Andrew Cooper writes:
> 
>> On 08/01/16 15:47, Konrad Rzeszutek Wilk wrote:
>>> On Thu, Jan 07, 2016 at 11:29:18AM -0600, Jonathan Creekmore wrote:
>>>> Allow the schedulers to be independently enabled or disabled at
>>>> compile-time. To match existing behavior, all four schedulers are
>>>> compiled in by default, although the Credit2, RTDS, and ARINC653 are
>>>> marked EXPERIMENTAL to match their not currently supported status.
>>> By unmarking all of them in sequence I was able to get this:
>>>
>>> #
>>> # Schedulers
>>> #
>>> # CONFIG_SCHED_CREDIT is not set
>>> # CONFIG_SCHED_CREDIT2 is not set
>>> # CONFIG_SCHED_RTDS is not set
>>> # CONFIG_SCHED_ARINC653 is not set
>>> # CONFIG_SCHED_CREDIT_DEFAULT is not set
>>> # CONFIG_SCHED_CREDIT2_DEFAULT is not set
>>> # CONFIG_SCHED_RTDS_DEFAULT is not set
>>> # CONFIG_SCHED_ARINC653_DEFAULT is not set
>>> CONFIG_SCHED_DEFAULT="credit"
>>>
>>>
>>> And the hypervisor did build with:
>>>
>>> [konrad@char xen]$ nm --defined xen-syms |grep schedulers
>>> ffff82d080290d58 D __end_schedulers_array
>>> ffff82d080290d58 D __start_schedulers_array
>>>
>>> :-)
>>>
>>> Not exactly sure if there is some way to make us _not_ shoot
>>> ourselves in the foot by mistake.
>>>
>>> Perhaps the build should complain if the size of the
>>> __schedulers_array is zero?
>>
>> Hmm yes - an ASSERT() at the bottom of the linker file would be a very
>> good defensive measure.
>>
>> A hypervisor without any schedulers compiled in will be rather sad.
> 
> I can definitely add that in.

I think there should be an ASSERT (or some other measure) to
ensure the default scheduler is available.


Juergen

  reply	other threads:[~2016-01-08 16:13 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-07 17:29 [PATCH v3 0/5] Allow schedulers to be selectable through Kconfig Jonathan Creekmore
2016-01-07 17:29 ` [PATCH v3 1/5] build: Env var to enable expert config options Jonathan Creekmore
2016-01-08 15:43   ` Konrad Rzeszutek Wilk
2016-01-07 17:29 ` [PATCH v3 2/5] build: Hook the schedulers into Kconfig Jonathan Creekmore
2016-01-08 15:47   ` Konrad Rzeszutek Wilk
2016-01-08 15:54     ` Andrew Cooper
2016-01-08 15:59       ` Dario Faggioli
2016-01-08 16:02       ` Jonathan Creekmore
2016-01-08 16:13         ` Juergen Gross [this message]
2016-01-08 16:30           ` Jonathan Creekmore
2016-01-08 16:49             ` Jan Beulich
2016-01-08 16:58               ` Doug Goldstein
2016-01-08 17:04                 ` Jonathan Creekmore
2016-01-08 17:13                   ` Andrew Cooper
2016-01-08 17:18                   ` Konrad Rzeszutek Wilk
2016-01-11  9:06                 ` Jan Beulich
2016-01-08 16:30           ` Jan Beulich
2016-01-07 17:29 ` [PATCH v3 3/5] build: Alloc space for sched list in the link file Jonathan Creekmore
2016-01-08 15:48   ` Konrad Rzeszutek Wilk
2016-01-07 17:29 ` [PATCH v3 4/5] sched: Register the schedulers into the list Jonathan Creekmore
2016-01-08 15:48   ` Konrad Rzeszutek Wilk
2016-01-07 17:29 ` [PATCH v3 5/5] sched: Use the auto-generated list of schedulers Jonathan Creekmore

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=568FE00D.6080906@suse.com \
    --to=jgross@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=dario.faggioli@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=jonathan.creekmore@gmail.com \
    --cc=xen-devel@lists.xenproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).