From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:34329) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqcrz-0007LD-Um for qemu-devel@nongnu.org; Fri, 08 May 2015 03:38:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Yqcru-0000Un-HJ for qemu-devel@nongnu.org; Fri, 08 May 2015 03:38:51 -0400 Received: from mail-oi0-x230.google.com ([2607:f8b0:4003:c06::230]:36378) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yqcru-0000UV-C0 for qemu-devel@nongnu.org; Fri, 08 May 2015 03:38:46 -0400 Received: by oift201 with SMTP id t201so52604919oif.3 for ; Fri, 08 May 2015 00:38:45 -0700 (PDT) Date: Fri, 8 May 2015 17:35:11 +1000 From: "Edgar E. Iglesias" Message-ID: <20150508073511.GY10142@toto> References: <1430709529-4653-1-git-send-email-edgar.iglesias@gmail.com> <55473B88.2080704@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <55473B88.2080704@redhat.com> Subject: Re: [Qemu-devel] [PATCH v1 1/1] hw/ptimer: Do not artificially limit timers when using icount List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini Cc: peter.maydell@linaro.org, qemu-devel@nongnu.org On Mon, May 04, 2015 at 11:27:36AM +0200, Paolo Bonzini wrote: > > > On 04/05/2015 05:18, Edgar E. Iglesias wrote: > > From: "Edgar E. Iglesias" > > > > Signed-off-by: Edgar E. Iglesias > > --- > > hw/core/ptimer.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > diff --git a/hw/core/ptimer.c b/hw/core/ptimer.c > > index 2abad1f..8437bd6 100644 > > --- a/hw/core/ptimer.c > > +++ b/hw/core/ptimer.c > > @@ -189,7 +189,7 @@ void ptimer_set_limit(ptimer_state *s, uint64_t limit, int reload) > > * on the current generation of host machines. > > */ > > > > - if (limit * s->period < 10000 && s->period) { > > + if (!use_icount && limit * s->period < 10000 && s->period) { > > limit = 10000 / s->period; > > } > > > > > > Reviewed-by: Paolo Bonzini Thanks, I've applied this one. Cheers, Edgar