From: Konrad Rzeszutek Wilk Subject: Re: [PATCH] libxl: Made it possible to use 'timer='delay_for_missed_ticks' Date: Mon, 25 Feb 2013 12:00:34 -0500 Message-ID: <20130225170034.GB10673@phenom.dumpdata.com> References: <1361810010-10340-1-git-send-email-konrad.wilk@oracle.com> <1361810590.26546.196.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1361810590.26546.196.camel@zakaz.uk.xensource.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On Mon, Feb 25, 2013 at 04:43:10PM +0000, Ian Campbell wrote: > On Mon, 2013-02-25 at 16:33 +0000, Konrad Rzeszutek Wilk wrote: > > The assertion only allows values of 1 (no_delay_for_missed_ticks) > > up to 3 (one_missed_tick_pending). It should be possible to > > use the value of 1 (delay_for_missed_ticks) for the timer configuration ^- 0 > > option. > > Doh! That was very likely a brainfart by me... And by me in the git commit description :-( > > > Signed-off-by: Konrad Rzeszutek Wilk > > Acked-by: Ian Campbell >From 4f7bd24184f98b4cf53cd8a24b89829c17ca3d1d Mon Sep 17 00:00:00 2001 From: Konrad Rzeszutek Wilk Date: Mon, 25 Feb 2013 11:30:18 -0500 Subject: [PATCH] libxl: Made it possible to use 'timer='delay_for_missed_ticks' The assertion only allows values of 1 (no_delay_for_missed_ticks) up to 3 (one_missed_tick_pending). It should be possible to use the value of 0 (delay_for_missed_ticks) for the timer configuration option. Acked-by: Ian Campbell Signed-off-by: Konrad Rzeszutek Wilk --- tools/libxl/libxl_dom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxl/libxl_dom.c b/tools/libxl/libxl_dom.c index e1cd9a4..de555ee 100644 --- a/tools/libxl/libxl_dom.c +++ b/tools/libxl/libxl_dom.c @@ -417,7 +417,7 @@ out: static unsigned long timer_mode(const libxl_domain_build_info *info) { const libxl_timer_mode mode = info->u.hvm.timer_mode; - assert(mode != LIBXL_TIMER_MODE_DELAY_FOR_MISSED_TICKS && + assert(mode >= LIBXL_TIMER_MODE_DELAY_FOR_MISSED_TICKS && mode <= LIBXL_TIMER_MODE_ONE_MISSED_TICK_PENDING); return ((unsigned long)mode); } -- 1.8.0.2