From mboxrd@z Thu Jan 1 00:00:00 1970 From: Dario Faggioli Subject: [PATCH 0 of 2 v2] Sanity checking of scheduling parameters Date: Thu, 07 Jun 2012 15:42:31 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: George Dunlap , Juergen Gross , Ian Jackson , Ian Campbell List-Id: xen-devel@lists.xenproject.org Hi, This small series achieves two goals: - check the return value of libxl_domain_sched_params_set() in libxl__build_post() and deal with the error, if that is the case (patch #1); - check and ensue we are passing along a meaningful set of sedf scheduling parameters when they come directly from the config file (patch #2) Tested on both credit and sedf schedulers. Changes from v1: * patch #1: it was not there at all in v1! :-P * patch #2: the if-s have been moved into an helper function. Also, they only happen if the domain is actually being scheduled with sedf (IanC, yes, I decided to do it... At the end of the day, it is simple enough I think). Thanks and Regards, Dario -- <> (Raistlin Majere) ----------------------------------------------------------------- Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)