From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id A82A3A0032; Fri, 22 Jul 2022 17:13:44 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 57D134021E; Fri, 22 Jul 2022 17:13:44 +0200 (CEST) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by mails.dpdk.org (Postfix) with ESMTP id 95D9F40156 for ; Fri, 22 Jul 2022 17:13:43 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1658502822; 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: in-reply-to:in-reply-to:references:references; bh=dMy7yNTNictYK0s6l+IFNNv3d9cg32loQo4LCusUG+o=; b=L1uxhk7ZV8oFTd+ZXmfvhCyZRUY5A3s5mckkYExhv4f8SR1hqB5Qo67Gy+j+esc5h9B/47 CVjJkpbpHoH3Y3g9ybKwhvAOS3Eo9HvAv2LIIsnHHAns+lgBsuf6vtrKrOYzoFQT1vLQcN cUPqKrcNbnIgo1wFPFKBxDLs7xkdMz4= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-408-NS25j9P2PO2OGNL7p-A54A-1; Fri, 22 Jul 2022 11:13:35 -0400 X-MC-Unique: NS25j9P2PO2OGNL7p-A54A-1 Received: by mail-lj1-f200.google.com with SMTP id i5-20020a2ea225000000b0025df20c360bso397865ljm.1 for ; Fri, 22 Jul 2022 08:13:34 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=dMy7yNTNictYK0s6l+IFNNv3d9cg32loQo4LCusUG+o=; b=AX/D4OtXNDxgvXRmwdyBX75Yj/53dSpA0k1565YSNyKrulmJu1CDaAKJq+gu67wdWn jT2g0qK0VJgNFY7LXSQMlLgs9M5a5WSKPIXIMvhVumLrzB4G6DpazoKU1EYvP91osDtv rWhoJ8AcSp9aaZLQX1V4nB0U3jQMYm+oLY3jS1UGiHkWQfY+XMiRWz/aiO3XA6H9jfPU TjyyUqJ1GL8cH7TPYCVglyKEoHu6TrR6YbsPFj4W/MV7cMddwGl8WaPuHzleH71NF55R v6jWSnxN8oybejqiFuw5qy9qD8HxL/ibW8qdmFSfVhZWKptTHWmVHx7HaHpRzs4CQ36E MY6Q== X-Gm-Message-State: AJIora+5Rq5kx6nD0k5DewIOADYbhqMzulg9ttObgWCQwKZt0wja8Gui kVIApspnNXZs9K44qy3J+o8NYFRzEbQlYHzL1lCKD3m35tvkhHfgLI6NiEAZ65lOHLNHtJJL7zS 017aq5yVMbdaeoJ1zUn8= X-Received: by 2002:ac2:5ed9:0:b0:48a:76eb:6a14 with SMTP id d25-20020ac25ed9000000b0048a76eb6a14mr203141lfq.553.1658502813511; Fri, 22 Jul 2022 08:13:33 -0700 (PDT) X-Google-Smtp-Source: AGRyM1tIEogTCn71ee+AZyJoyhKx4QOhrdyOQYaioqfOMRAdHD2CRsOpLH9u0kGr5UBfoCnvz26ycmRmLnGCeAknsTs= X-Received: by 2002:ac2:5ed9:0:b0:48a:76eb:6a14 with SMTP id d25-20020ac25ed9000000b0048a76eb6a14mr203130lfq.553.1658502813154; Fri, 22 Jul 2022 08:13:33 -0700 (PDT) MIME-Version: 1.0 References: <20220722135320.109269-1-david.marchand@redhat.com> In-Reply-To: <20220722135320.109269-1-david.marchand@redhat.com> From: David Marchand Date: Fri, 22 Jul 2022 17:13:22 +0200 Message-ID: Subject: Re: [PATCH 1/2] vhost: keep a reference to virtqueue index To: dev Cc: Maxime Coquelin , Chenbo Xia Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=dmarchan@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="UTF-8" X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Fri, Jul 22, 2022 at 3:54 PM David Marchand wrote: > @@ -607,32 +594,20 @@ init_vring_queue(struct virtio_net *dev, uint32_t vring_idx) > #endif > vq->numa_node = numa_node; > > - vhost_user_iotlb_init(dev, vring_idx); > + vhost_user_iotlb_init(dev, vq); Erm, it won't fly if the index is cleared at this point... I'll send a v2 next week. > } > -- David Marchand