Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp686692ybb; Fri, 3 Apr 2020 09:58:04 -0700 (PDT) X-Google-Smtp-Source: APiQypITuojlV/CKqn8nqoMEaaAmN14dc2TolRNzpoaJyoLWYP14+BCaOZ83x72KwqYwKMatW4jU X-Received: by 2002:a4a:d746:: with SMTP id h6mr7421185oot.21.1585933084379; Fri, 03 Apr 2020 09:58:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585933084; cv=none; d=google.com; s=arc-20160816; b=KyI0y/EOf6dX7KbzxjS2WxdcjhbrFM3gHtx4RHfoyobgyGXP6VguMHfMPv7TPLF1cB GjQRRnO1QDKH1DR/nrz4/K8oMClJ3XPdKGoNaYmMcZaifuCMve1cBCfFCA+J3NAQO+5b TNY0InaWE6ShPaCAy4njCFC8JSJ+dcFyR76Fie8zfMcxMo8LX1H9IZHAjASjZohcWBKA nGNPt4RshnTmF3+nAmzof6F1GczTXewOHpw2P4WrZb6v/ue7x+KV/Bj/F3sDPnv9IF+q BP/lZ/bQTJFv00r2LQAp8QEUj0JJmdK1a2pAfRaQNpzPkrx8h2RgmZx1gMiHXg7If1dh 2+Mg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature; bh=8YeWmblf5mS/8GdUhzLA4Htge8P1tK+DUvfsT44OWM8=; b=ogGuRUQG7Wcip0J9LZufZp4vrIz73yakqy4y0aWiD3aW6naVZHlLj2L7ZVbxm5UBWI fqIflIAIiCqxS0K6d+d1qJEf9q4uXmOlI1C4MDszPT4eIYK4sXkzMm3mPs+3/LPM/P/m yMrArBesWLds1hkVgga+MKB37IyeSG/f7nsJePrr33rNX0HD9bh/KRVEBKyyZ1PYIiSB yjwUIB6lB0hqCKYnnjFTJPNYNiRGIcJr5U3prN+exztm3+NImQTHY36xrKHfAeQtYyBO Gw5iiBd47s52J9ArUYlaWjH3xZDDVwpjU8tKGYppM4JuFmJLnnpHYTCacZuq2slPDUWE HS2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f/6K9izj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 91si3846575ots.139.2020.04.03.09.57.51; Fri, 03 Apr 2020 09:58:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b="f/6K9izj"; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2404327AbgDCQvn (ORCPT + 99 others); Fri, 3 Apr 2020 12:51:43 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:42536 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2403998AbgDCQvm (ORCPT ); Fri, 3 Apr 2020 12:51:42 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585932701; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:in-reply-to:in-reply-to:references:references; bh=8YeWmblf5mS/8GdUhzLA4Htge8P1tK+DUvfsT44OWM8=; b=f/6K9izjQnUQFRZnEsR0ubNwaAJpsOYQ/Erf6Ibj3qVr74HSoNkmuiN8eSA6bKwuqwoi7t AoOWD0LW1HDZrjdCjZx/9vAprjcyvs0P9YgsdHmZoCQkbyVWL9jBXK9B30BzzmxEP9T0KV tKwjZvtB41RCva+mMIZDVzMAcE7vOOM= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-452-4k1-NX7ePo2t4I62hjtMTw-1; Fri, 03 Apr 2020 12:51:39 -0400 X-MC-Unique: 4k1-NX7ePo2t4I62hjtMTw-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 4758D1005513; Fri, 3 Apr 2020 16:51:38 +0000 (UTC) Received: from eperezma.remote.csb (ovpn-113-28.ams2.redhat.com [10.36.113.28]) by smtp.corp.redhat.com (Postfix) with ESMTP id DE378A0A7B; Fri, 3 Apr 2020 16:51:31 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S. Tsirkin" Cc: kvm list , "virtualization@lists.linux-foundation.org" , Linux Next Mailing List , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Stephen Rothwell , Cornelia Huck , Halil Pasic , "linux-kernel@vger.kernel.org" , Christian Borntraeger Subject: [PATCH 2/8] vhost: Not cleaning batched descs in VHOST_SET_VRING_BASE ioctl Date: Fri, 3 Apr 2020 18:51:13 +0200 Message-Id: <20200403165119.5030-3-eperezma@redhat.com> In-Reply-To: <20200403165119.5030-1-eperezma@redhat.com> References: <20200403165119.5030-1-eperezma@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org They are cleaned in vhost_vq_set_backend --- drivers/vhost/vhost.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/vhost/vhost.c b/drivers/vhost/vhost.c index 0395229486a9..882d0df57e24 100644 --- a/drivers/vhost/vhost.c +++ b/drivers/vhost/vhost.c @@ -1579,7 +1579,6 @@ long vhost_vring_ioctl(struct vhost_dev *d, unsigned int ioctl, void __user *arg vq->last_avail_idx = s.num; /* Forget the cached index value. */ vq->avail_idx = vq->last_avail_idx; - vq->ndescs = vq->first_desc = 0; break; case VHOST_GET_VRING_BASE: s.index = idx; -- 2.18.1