Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp683440ybb; Fri, 3 Apr 2020 09:54:32 -0700 (PDT) X-Google-Smtp-Source: APiQypIZnNWVyJieYcuwu490Kkepwjr4PYipAQnG8Yu7wRbeYOS5uTdpXK1XaUrrACjZOIhXGOgn X-Received: by 2002:a05:6830:1e79:: with SMTP id m25mr7059544otr.36.1585932872269; Fri, 03 Apr 2020 09:54:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585932872; cv=none; d=google.com; s=arc-20160816; b=r9quQsu/KZDi/F3WNRRlrCa3UzxHFL3L0yb2IDKR7Zc/VafoNI4c5DDITFXjUMYBur 6nhdSRTT3YPEAyh9XV0LsDN/CcrWK3SbAiDOV1ZdzfIXaL5TB+SIR46PyCnJFYj+28t0 8nU8ActX+zks6TQfhHwKMpu9csGUTYWWttVVrC+AH2U5Pcp0RPQa84HDvCxd2b++hfpv Kqt2l0QbQ4xSAD2nm3SlMc/4FujU82Ko96bXsPkcjRg/OyzQE/ylQ2J7jSlKQaO5Alri VlazeNYDgbQxCHWBWnktr8X7naSMgl75VSxTivU0gyJmBUb9fLq1+LUZQyXfCkPz2FtP SdNw== 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=X2YzNwxGjX7RUhG5xjgh2bTQxpqtEuU8/vbNLpGIK/g=; b=SfwYprLkLcBQvLzGPzpXuUlXjVb9gt48v3J/Ypq02k2ifCFR59ilK+u5KQNT8sIhou wy17MP/p+E50a63zJNCX0duznvhT1kPpUqZPblD0oDK6h4CUWMEM+G4IE/TjzFCTEpSy uMH9/otHOavbxezUvUhYvdpjkQCba05IrDTddrMRh3Bp6VIeYzk0oZ3wpvPOW+pdsPUb ZezqCdJkdoX693wOkxF2hxVyRw3ls1W/lMeoDDJ7Kgeyw3KLk0x88yk/TfefEBFmTywJ dcuFAktWhU0uRN4IrX7awNmz7aROE/37ZScnqpizvxKmlvOAoibr/EwP0IwXKO2RIYA+ fVRQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=fZ6sSN02; 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 r6si3949863oti.159.2020.04.03.09.54.19; Fri, 03 Apr 2020 09:54:32 -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=fZ6sSN02; 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 S2404643AbgDCQv4 (ORCPT + 99 others); Fri, 3 Apr 2020 12:51:56 -0400 Received: from us-smtp-delivery-1.mimecast.com ([207.211.31.120]:35464 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S2404633AbgDCQvz (ORCPT ); Fri, 3 Apr 2020 12:51:55 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1585932714; 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=X2YzNwxGjX7RUhG5xjgh2bTQxpqtEuU8/vbNLpGIK/g=; b=fZ6sSN02yHjNbHXIPvkAWX5ymcmVNG4mdZucvgXo55TXekEvhSz2v91I0F8cie81Jfq/bY j6f3+RhOCnU0+m5JzTGskJOXhZRWRRGKaQxuJ/xwwX1fDlgXeDrJfVi6pkPp5vlTZhoP8S hT2DRRaRyJ2oKnIyGDFJske8r4J7eXY= 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-297-mnMUANtrPPeJ7OnLqubzmg-1; Fri, 03 Apr 2020 12:51:50 -0400 X-MC-Unique: mnMUANtrPPeJ7OnLqubzmg-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 42B718017CE; Fri, 3 Apr 2020 16:51:49 +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 C8B0418A85; Fri, 3 Apr 2020 16:51:44 +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 5/8] tools/virtio: Use __vring_new_virtqueue in virtio_test.c Date: Fri, 3 Apr 2020 18:51:16 +0200 Message-Id: <20200403165119.5030-6-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 As updated in 2a2d1382fe9d --- 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 38aa5316b266..9b730434997c 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 num) assert(r >= 0); memset(info->ring, 0, vring_size(num, 4096)); vring_init(&info->vring, num, info->ring, 4096); - info->vq = vring_new_virtqueue(info->idx, - info->vring.num, 4096, &dev->vdev, - true, false, info->ring, - vq_notify, vq_callback, "test"); + info->vq = + __vring_new_virtqueue(info->idx, info->vring, &dev->vdev, true, + false, vq_notify, vq_callback, "test"); assert(info->vq); info->vq->priv = info; vhost_vq_setup(dev, info); -- 2.18.1