Message ID | 1478506829-9208-3-git-send-email-yuri.benditovich@daynix.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 801A260512 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 7 Nov 2016 08:24:11 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 61BA028B92 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 7 Nov 2016 08:24:11 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5331828DD8; Mon, 7 Nov 2016 08:24:11 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.8 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI,T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id DE99B28B92 for <patchwork-qemu-devel@patchwork.kernel.org>; Mon, 7 Nov 2016 08:24:10 +0000 (UTC) Received: from localhost ([::1]:52114 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org>) id 1c3fDu-0005Cc-6c for patchwork-qemu-devel@patchwork.kernel.org; Mon, 07 Nov 2016 03:24:10 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57782) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1c3fAi-00032M-6G for qemu-devel@nongnu.org; Mon, 07 Nov 2016 03:20:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1c3fAh-00045z-2t for qemu-devel@nongnu.org; Mon, 07 Nov 2016 03:20:52 -0500 Received: from mail-wm0-x243.google.com ([2a00:1450:400c:c09::243]:34238) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1c3fAg-00045P-Rq for qemu-devel@nongnu.org; Mon, 07 Nov 2016 03:20:50 -0500 Received: by mail-wm0-x243.google.com with SMTP id p190so15118754wmp.1 for <qemu-devel@nongnu.org>; Mon, 07 Nov 2016 00:20:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LJIgKrUaXGWQdC49IITInIyU1RrUfvh3TdFKPgHlp6s=; b=mDuSHR045n/+kIhJMLPv7EC8FgGcLYO/BV9l0WsccU7fyEZGkHM3QM5cYJC6CDKOEd Ibo2SWD7Extd2qO0DRKIk6t6yMRFS/2PD1JhYJOUs1DljKZ3i0fsNOSXp9ymuZv02OZ5 1fbZ8Q0hJJmYPQE0Bf+TkbJHOFlCEAd+hTnEHELQsZMeP7hz3wx12SVhA1XjP6v+hfeS sRzm1abffas+DgZB5GTdvcFbyd+AG0ItsSbCgGpsAVNQ46KlRDO3PQPbqzXEiP3sT+Cm NRjC/NIY6X3lkKaMG14//nkrIAWGT2F5NHZtdxa0JCCZg96lehJbcliCgdMATslQMF0S xa1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LJIgKrUaXGWQdC49IITInIyU1RrUfvh3TdFKPgHlp6s=; b=L5SPsOQ99ELoqFYoCXIoIrDsf2BNL0VXWC+5OB270vAisP/5s6NgYLaDp3D5nw1PEe N365ux4K5FA56R1ckzkXoWJkdyoUEHfZuX/Uc6Y+0uwErX1SF+flT9f+RVWZ23gWDIN/ Nbz/iCpcRlYbrCjvfkn6CFnNbI3U66CQSOn9lZmRCMKyg8qLZGWsnBXrXyrLFH7s8HJ4 i0Ym4hZ1cES1SldzVuxkFHSp8EOhDdFdFc68UziE4ZaUJBM8FhfsFZB4ErJs8LuGh0pk lZkAzkyx2MbMhUk1iJdzRqPUgChRPeIIPuqproWtWKVTuc9lW17TRIbfV5eajfNcudFX UwMA== X-Gm-Message-State: ABUngvccsEffVPRE7c4BIabGxC1Ts7ZKiV4heFR6/kBBBP/M7Dy7h9Uqytp5F7pLV+UNSg== X-Received: by 10.28.6.137 with SMTP id 131mr7495065wmg.49.1478506849824; Mon, 07 Nov 2016 00:20:49 -0800 (PST) Received: from localhost.localdomain ([141.226.163.133]) by smtp.gmail.com with ESMTPSA id vf8sm29494241wjc.27.2016.11.07.00.20.48 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 07 Nov 2016 00:20:49 -0800 (PST) From: yuri.benditovich@daynix.com To: "Michael S . Tsirkin" <mst@redhat.com>, Jason Wang <jasowang@redhat.com>, qemu-devel@nongnu.org Date: Mon, 7 Nov 2016 10:20:28 +0200 Message-Id: <1478506829-9208-3-git-send-email-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1478506829-9208-1-git-send-email-yuri.benditovich@daynix.com> References: <1478506829-9208-1-git-send-email-yuri.benditovich@daynix.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a00:1450:400c:c09::243 Subject: [Qemu-devel] [PATCH 2/3] net: vhost stop updates virtio queue state X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <http://lists.nongnu.org/archive/html/qemu-devel/> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Cc: dmitry@daynix.com, yan@daynix.com Errors-To: qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org Sender: "Qemu-devel" <qemu-devel-bounces+patchwork-qemu-devel=patchwork.kernel.org@nongnu.org> X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c index bd051ab..2e990d0 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -963,6 +963,7 @@ static void vhost_virtqueue_stop(struct vhost_dev *dev, virtio_queue_set_last_avail_idx(vdev, idx, state.num); } virtio_queue_invalidate_signalled_used(vdev, idx); + virtio_queue_update_used_idx(vdev, idx); /* In the cross-endian case, we need to reset the vring endianness to * native as legacy devices expect so by default.