WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] Re: [PATCH] xen: Fix sedf scheduler

To: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
Subject: [Xen-devel] Re: [PATCH] xen: Fix sedf scheduler
From: George Dunlap <george.dunlap@xxxxxxxxxx>
Date: Thu, 21 Jul 2011 12:30:16 +0100
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 21 Jul 2011 04:32:58 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <c34ffe3c22ea7f4d70c0.1311247686@elijah>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <c34ffe3c22ea7f4d70c0.1311247686@elijah>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Since we still have a number of people using the sedf scheduler, it's
probably a good idea to have the automated test infrastructure at least
boot with it and start a VM, to make sure it's not completely broken.

 -George

On Thu, 2011-07-21 at 12:28 +0100, George Dunlap wrote:
> Update the sedf scheduler to be compatible with the most recent
> generic scheduler interface changes.
> 
> Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx>
> 
> diff -r dd5eecf739d1 -r c34ffe3c22ea xen/common/sched_sedf.c
> --- a/xen/common/sched_sedf.c Wed Jul 20 15:02:16 2011 +0100
> +++ b/xen/common/sched_sedf.c Thu Jul 21 12:27:59 2011 +0100
> @@ -331,6 +331,19 @@ static inline void __add_to_runqueue_sor
>  }
>  
> 
> +static void sedf_insert_vcpu(const struct scheduler *ops, struct vcpu *v)
> +{
> +    if ( !is_idle_vcpu(v) )
> +    {
> +        extraq_check(v);
> +    }
> +    else
> +    {
> +        EDOM_INFO(v)->deadl_abs = 0;
> +        EDOM_INFO(v)->status &= ~SEDF_ASLEEP;
> +    }
> +}
> +
>  static void *sedf_alloc_vdata(const struct scheduler *ops, struct vcpu *v, 
> void *dd)
>  {
>      struct sedf_vcpu_info *inf;
> @@ -365,16 +378,6 @@ static void *sedf_alloc_vdata(const stru
>      INIT_LIST_HEAD(&(inf->list));
>      INIT_LIST_HEAD(&(inf->extralist[EXTRA_PEN_Q]));
>      INIT_LIST_HEAD(&(inf->extralist[EXTRA_UTIL_Q]));
> - 
> -    if ( !is_idle_vcpu(v) )
> -    {
> -        extraq_check(v);
> -    }
> -    else
> -    {
> -        inf->deadl_abs = 0;
> -        inf->status &= ~SEDF_ASLEEP;
> -    }
>  
>      return inf;
>  }
> @@ -1498,6 +1501,8 @@ const struct scheduler sched_sedf_def = 
>      .init_domain    = sedf_init_domain,
>      .destroy_domain = sedf_destroy_domain,
>  
> +    .insert_vcpu    = sedf_insert_vcpu,
> +
>      .alloc_vdata    = sedf_alloc_vdata,
>      .free_vdata     = sedf_free_vdata,
>      .alloc_pdata    = sedf_alloc_pdata,



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>