Message ID | 1481616728-148412-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 7DAD6607EE for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 13 Dec 2016 08:20:03 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6E13528539 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 13 Dec 2016 08:20:03 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 62C92284CE; Tue, 13 Dec 2016 08:20:03 +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.3 required=2.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_HI, RCVD_IN_SORBS_SPAM, 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 EDBCA28539 for <patchwork-qemu-devel@patchwork.kernel.org>; Tue, 13 Dec 2016 08:20:02 +0000 (UTC) Received: from localhost ([::1]:36102 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 1cGiJd-0005mh-HN for patchwork-qemu-devel@patchwork.kernel.org; Tue, 13 Dec 2016 03:20:01 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1cGiDh-0001kN-Vj for qemu-devel@nongnu.org; Tue, 13 Dec 2016 03:13:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1cGiDe-0003z4-Rl for qemu-devel@nongnu.org; Tue, 13 Dec 2016 03:13:53 -0500 Received: from mail-wm0-f67.google.com ([74.125.82.67]:34792) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from <yuri.benditovich@daynix.com>) id 1cGiDe-0003v2-Lq for qemu-devel@nongnu.org; Tue, 13 Dec 2016 03:13:50 -0500 Received: by mail-wm0-f67.google.com with SMTP id g23so16659474wme.1 for <qemu-devel@nongnu.org>; Tue, 13 Dec 2016 00:13:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=daynix-com.20150623.gappssmtp.com; s=20150623; h=from:to:subject:date:message-id:in-reply-to:references; bh=PpZDzYJ2JeUcRuhP0GnYi8OGCLWjGcTEXAegjtE4cp0=; b=E/qswR8gnrFcgRDxlvPph0bM9EhltQWUUd6j/W75KSlroc06l/sJVlqOtq3hjAMDgi Dtqno1HHLHZmUEavz7IHmHq/u2cr+2XF5ygfS52fvwCptQ8zyVziyXbb9txSzGtu3YUZ DOagZiKqXM2D5/rKWpFmF5gbPYtw7vplGD7aXSmwziAqvvs63Y3soGWaPsPBpqdSChnr CjZbNri2/4esxb95ZtRqyTUAktpIv7XaXYdSMHF50RW5ZnKoFzBgXhl2/0UBUCHCfD4M trbrfF/FWNHU2LggpuiBmc3wTWEAcZERDHniG7N7sUiqmdbgbO7xjnzLRzsDaDaMFpOf N2Rw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=PpZDzYJ2JeUcRuhP0GnYi8OGCLWjGcTEXAegjtE4cp0=; b=U0EdghYVZa5umAFDghf+A3QiG15X8AeC1ZOMCRkw28AuJJAxbYOS+h5fGaaK402U59 uAbP7MvcdCF7RvwPZtvlvf1q5GhUTxJR08cGxnFZZvhNVcx3PDm0hKYtLp4GjlpNxoZN HcGHmou/rEb6a9KKj+f8hhy6yx3CETrGaAG9DFnuXwzBF/AtO1K0jtqtygqEHDHvNfIC yzZzIq+cDFdZs0vicrViVW2h8rUtbIs2wzDPzHRg3LEWL7FrwdswuyFmKGC1hUjMxbNM rlyoq9cFk+Y2bppV+Xgba94fmy+QW2QG+kPbyoYzBujIrH5vayLLyTElRvgH+433eiEH sUYw== X-Gm-Message-State: AKaTC00rtL6xcMmIMtQf2ZbJ7yaNFIWsQNQqy966PHH/6iZnKicx3q5QbSaswV52Kr6vJw== X-Received: by 10.28.183.215 with SMTP id h206mr1493829wmf.60.1481616747205; Tue, 13 Dec 2016 00:12:27 -0800 (PST) Received: from localhost.localdomain ([141.226.163.133]) by smtp.gmail.com with ESMTPSA id d17sm60996111wjr.14.2016.12.13.00.12.26 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 13 Dec 2016 00:12:26 -0800 (PST) From: Yuri Benditovich <yuri.benditovich@daynix.com> To: qemu-devel@nongnu.org, Jason Wang <jasowang@redhat.com>, "Michael S . Tsirkin" <mst@redhat.com> Date: Tue, 13 Dec 2016 10:12:06 +0200 Message-Id: <1481616728-148412-3-git-send-email-yuri.benditovich@daynix.com> X-Mailer: git-send-email 2.7.0.windows.1 In-Reply-To: <1481616728-148412-1-git-send-email-yuri.benditovich@daynix.com> References: <1481616728-148412-1-git-send-email-yuri.benditovich@daynix.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 74.125.82.67 Subject: [Qemu-devel] [PATCH v3 2/4] 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> 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 f7f7023..d396b22 100644 --- a/hw/virtio/vhost.c +++ b/hw/virtio/vhost.c @@ -993,6 +993,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.
Make virtio queue suitable for push operation from qemu after vhost was stopped. Signed-off-by: Yuri Benditovich <yuri.benditovich@daynix.com> --- hw/virtio/vhost.c | 1 + 1 file changed, 1 insertion(+)