Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp1021007ybz; Thu, 16 Apr 2020 01:02:39 -0700 (PDT) X-Google-Smtp-Source: APiQypJ1e7VvFv1LGetOEAS8qJuNO6t0hFlRGN4nM8XMZbdim84C6Oub/PNHX4sUc+q1Tg1+FQ/z X-Received: by 2002:aa7:daca:: with SMTP id x10mr14215331eds.59.1587024159827; Thu, 16 Apr 2020 01:02:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1587024159; cv=none; d=google.com; s=arc-20160816; b=Wguh1LGoMX6MKwjVUcM3VTPqWlxt4qx5EcLZAQTd8i2m1UCLQmSNglC7z4ylblshvf vuOLLStXn4g4A+BjdAyw06jssogCOJ8rnuSOq5EWssK/YOp8tfQ8x6w6cOb6gvKylHgD NbcmKAeiQn4u8E57vYcKIGFh6172aCiuYSBXGPUvnH2skcMglQ8+6xn+x6A6RbgM/dTi 0ed+8WcXtp6C+lTWKlj7Exco7ysuICDMBrky570RTaQGr9PH7GmviUlsvdRLKGdu/jSR uea4e+X540SL/paqat2491aZiewIHmtjL8YTpjrn+kDbpFgtsNPiMSRHcZC/QNXp7hOK VWSg== 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=ykITk4fxK46D6AMrZatD/OE634nsOv7eweYKlbWRBw8=; b=xyjMu1i8w8xCxu+96SxBWNOz2Sok0EO+TKt7TrR4LcxktWUaKEeclUanahwgensGRe 1lNHtqcssbJr8EPNNr+Uljr3X5TD0z5tx1T0kJspgmE8YlNWw3H7pxCqlt3QHRz9N9g+ gALKB9qtdG3NJONhLsFOnPMzuGIoQwsDgpewE2qzKWqNi7wu5yP5vHurhqGsY8Ccax6y xtH3yi7L2wEH3Yy8UUHLWPT5jd29bf/VFky3+yfANFhlyqdK5Bm0X8amyOELuq00bmfr LXCF3FwsHfcyN/RKlnFaGDxb2rftUvtNsRccadWwdTvhzAU2g2jqKaoqnbzk3zMcO1dX N64w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=H4K3SBoY; 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 lw9si2248618ejb.175.2020.04.16.01.02.14; Thu, 16 Apr 2020 01:02:39 -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=H4K3SBoY; 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 S2440835AbgDPH6b (ORCPT + 99 others); Thu, 16 Apr 2020 03:58:31 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:50304 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2440836AbgDPH5N (ORCPT ); Thu, 16 Apr 2020 03:57:13 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1587023831; 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=ykITk4fxK46D6AMrZatD/OE634nsOv7eweYKlbWRBw8=; b=H4K3SBoYjiV3cKFwnFv+Z1ahNok6aOXZEpiakbbCQ9QBnYIYNE9kqWQNnAFTYy50k7Y/cm hNiDIEfvdFBx3qJS3RrKd6d/eoWEaGg02zRxPzG0bbxH7PtQkpWksoDHXOoTlvu4RjeHKb BSJ4QcqgdONgdlgwwu0we9RBfrVNEuI= 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-244-Hw17gpxjPcefP6o9UzMOdw-1; Thu, 16 Apr 2020 03:57:07 -0400 X-MC-Unique: Hw17gpxjPcefP6o9UzMOdw-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 58C73DB81; Thu, 16 Apr 2020 07:57:06 +0000 (UTC) Received: from eperezma.remote.csb (ovpn-112-194.ams2.redhat.com [10.36.112.194]) by smtp.corp.redhat.com (Postfix) with ESMTP id EF0BA7E7C0; Thu, 16 Apr 2020 07:57:03 +0000 (UTC) From: =?UTF-8?q?Eugenio=20P=C3=A9rez?= To: "Michael S. Tsirkin" Cc: Stephen Rothwell , "virtualization@lists.linux-foundation.org" , Christian Borntraeger , =?UTF-8?q?Eugenio=20P=C3=A9rez?= , Linux Next Mailing List , kvm list , Cornelia Huck , Halil Pasic , "linux-kernel@vger.kernel.org" Subject: [PATCH v2 5/8] tools/virtio: Use __vring_new_virtqueue in virtio_test.c Date: Thu, 16 Apr 2020 09:56:40 +0200 Message-Id: <20200416075643.27330-6-eperezma@redhat.com> In-Reply-To: <20200416075643.27330-1-eperezma@redhat.com> References: <20200416075643.27330-1-eperezma@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 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 1d5144590df6..d9827b640c21 100644 --- a/tools/virtio/virtio_test.c +++ b/tools/virtio/virtio_test.c @@ -106,10 +106,9 @@ static void vq_info_add(struct vdev_info *dev, int n= um) assert(r >=3D 0); memset(info->ring, 0, vring_legacy_size(num, 4096)); vring_legacy_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