[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Xen-devel] [PATCH 0 of 2 v3] Sanity checking of scheduling parameters
- To: xen-devel@xxxxxxxxxxxxx
- From: Dario Faggioli <raistlin@xxxxxxxx>
- Date: Fri, 08 Jun 2012 11:08:07 +0200
- Cc: George Dunlap <George.Dunlap@xxxxxxxxxxxxx>, Juergen Gross <juergen.gross@xxxxxxxxxxxxxx>, Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>, Ian Campbell <Ian.Campbell@xxxxxxxxxx>
- Delivery-date: Fri, 08 Jun 2012 09:10:04 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:content-type:mime-version:content-transfer-encoding:subject :message-id:user-agent:date:from:to:cc; bh=m0OifCgMz2zGh2TwyDmJg4zot0nZKoMkq5vLprgXhEA=; b=sSpIbaibMaEebUQ/6Q20ashR0Vdwat8WzlcXoAKDE7GNrhMAfxXXNNzDlhAfYiTCY4 tkIjD3kXuOPFOvYn5cn6ZB0gg6AfLVz1VBEYpZNIaDVnwokrTM9fDOMt9MkX2aAR7jlE jJ7zMALPflGQ3NJIBw/X0fwVCXFHf5++eJwqKRdUKIBjFOrnTwgiEmEnI4lj3wH8iY6e mpcqmz6nndY2UQcFrf8tVAH9ev2rvVim65dioysWqtGPp0OagJa+It7MtQqKoO7Q4LCS tB3AZe8onaJYpJ7GCrwn/WiZ/f/fQaj4H39hoJpYZcq9hR7RHUGPpZvk5SP/IR/uBLOR aYQg==
- List-id: Xen developer discussion <xen-devel.lists.xen.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 v2:
* actually propagate the error correctly instead of always returning
INVAL (in patch #1).
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
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://retis.sssup.it/people/faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel