Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1551131ybz; Sat, 18 Apr 2020 03:26:15 -0700 (PDT) X-Google-Smtp-Source: APiQypKsC6Fo57d8Jb6LYJfN8EwAKlQU6OZjJ4MqaA++1hjtOtyoedDee5dJK/CUjftLmSHpTrjf X-Received: by 2002:a17:906:1e47:: with SMTP id i7mr7189832ejj.286.1587205575165; Sat, 18 Apr 2020 03:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587205575; cv=none; d=google.com; s=arc-20160816; b=s9QIBxUXtFl72zAPj92H488XVgkz83e9gEXiCgFUMoJoqwLXuEWw09emkJfqDht3Df kWOzZe66G0Rfj+DO9LJJRpT2EsSVNvZC1yYNXGlnRBBdNnhQ1Rqska0RzbvqbHiLv00a G0W8IXScRDHsL1m83yFuB3VNGi0hLo4Y23RpbquUhcrzDXg45Dh7gmD0u7KQW6pJ0el2 DPugzGUc8VlaEMNoDBUfR+Y02+B3QuS1dKseUQ6t0fN7kZ6Q6WF5gUUNZdRfJSPNCaGm dg8ogsxUmcwsYxlLqZ0ioDLsVq8JtZY5x5SroWnBhC++pFN/Oc+SmT7PiYonJnUqYlp/ IaQw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=UESdyrXT+qLtkr29FvZrw/ATFVQJjMdAGWcplfhsfoM=; b=cKZmDRlMRVEBTn/JVt1RV60KPYqlNauGxkOqnOKeGvC9J/X2qjIqP4Vm9xBIhcmjxM eC2FQR75NoBbmLLiQjNMXLdhNmbLS4SvSYD76Hjr2mLQat9c58zlNidYj5CyJkhh7LlF u/dxTylF8ur/9v40HDUm0vkrhlTS292Hmv3f/bfi3IA50CcVOwspfN1zHkkSMJUFDwZo r+Raw2+Ar7k+lJi7+oXnVW5yy/gk2m4A/c/mx9VF2wB1jwxtxwKczFG9DSEBKwIEpzSo mND3Mo9J20fIBORrtGyVzZT5Rm/zOl7Bk2zrbgewn84IaypHWzEXDbD1fMLPoxG3WSs/ uRdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hmjIhOd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id a4si17104786edn.451.2020.04.18.03.25.52; Sat, 18 Apr 2020 03:26:15 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=hmjIhOd0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S1726195AbgDRKYW (ORCPT + 99 others); Sat, 18 Apr 2020 06:24:22 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:53843 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726036AbgDRKWt (ORCPT ); Sat, 18 Apr 2020 06:22:49 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587205368; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=UESdyrXT+qLtkr29FvZrw/ATFVQJjMdAGWcplfhsfoM=; b=hmjIhOd0GsgpLAMjVXILdaWG/VqXD2+62uQV0qUNSPAgOrknM1Hs6Xr2zsLXR+iLgeysNk NgU5/FxJs4vJ+ChaN4OxeGDkhhNKvJARfhO0rtLPOOBzoH0rgqYMxtljEt7DOPgXKGE0Q1 8jp7FNJlqM+k7fuOnA9XysH5bJyIL/A= 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-126-6ocvjgO7Nei7k3OHZb0Rew-1; Sat, 18 Apr 2020 06:22:43 -0400 X-MC-Unique: 6ocvjgO7Nei7k3OHZb0Rew-1 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 46AFD1005509; Sat, 18 Apr 2020 10:22:42 +0000 (UTC) Received: from eperezma.remote.csb (ovpn-112-94.ams2.redhat.com [10.36.112.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id E51421000325; Sat, 18 Apr 2020 10:22:39 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S. Tsirkin" Cc: "virtualization@lists.linux-foundation.org" , "linux-kernel@vger.kernel.org" , Halil Pasic , Cornelia Huck , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Christian Borntraeger , kvm list , Stephen Rothwell , Linux Next Mailing List Subject: [PATCH v3 5/8] tools/virtio: Use __vring_new_virtqueue in virtio_test.c Date: Sat, 18 Apr 2020 12:22:14 +0200 Message-Id: <20200418102217.32327-6-eperezma@redhat.com> In-Reply-To: <20200418102217.32327-1-eperezma@redhat.com> References: <20200418102217.32327-1-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org As updated in ("2a2d1382fe9d virtio: Add improved queue allocation API") Signed-off-by: Eugenio P=C3=A9rez --- tools/virtio/virtio_test.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/tools/virtio/virtio_test.c b/tools/virtio/virtio_test.c index 6bc3e172cc9b..0a247ba3b899 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -105,10 +105,9 @@ static void vq_info_add(struct vdev_info *dev, int n= um) assert(r >=3D 0); memset(info->ring, 0, vring_size(num, 4096)); vring_init(&info->vring, num, info->ring, 4096); - info->vq =3D vring_new_virtqueue(info->idx, - info->vring.num, 4096, &dev->vdev, - true, false, info->ring, - vq_notify, vq_callback, "test"); + info->vq =3D + __vring_new_virtqueue(info->idx, info->vring, &dev->vdev, true, + false, vq_notify, vq_callback, "test"); assert(info->vq); info->vq->priv =3D info; vhost_vq_setup(dev, info); --=20 2.18.1