From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752059AbdJZIhC (ORCPT ); Thu, 26 Oct 2017 04:37:02 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36200 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751597AbdJZIhA (ORCPT ); Thu, 26 Oct 2017 04:37:00 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 8D9827E38B Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx04.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=cohuck@redhat.com Date: Thu, 26 Oct 2017 10:36:47 +0200 From: Cornelia Huck To: "Michael S. Tsirkin" Cc: linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH] virtio/ringtest: fix up need_event math Message-ID: <20171026103647.588ac89b.cohuck@redhat.com> In-Reply-To: <1508982452-27245-1-git-send-email-mst@redhat.com> References: <1508982452-27245-1-git-send-email-mst@redhat.com> Organization: Red Hat GmbH MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Thu, 26 Oct 2017 08:36:59 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 26 Oct 2017 04:48:01 +0300 "Michael S. Tsirkin" wrote: > last kicked event index must be updated unconditionally: > even if we don't need to kick, we do not want to re-check > the same entry for events. > > Signed-off-by: Michael S. Tsirkin > --- > tools/virtio/ringtest/ring.c | 24 +++++++++++++++--------- > 1 file changed, 15 insertions(+), 9 deletions(-) Acked-by: Cornelia Huck I think virtio_ring_0_9 has the same issue?