From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by dpdk.org (Postfix) with ESMTP id 935CF6841 for ; Mon, 4 Sep 2017 17:45:16 +0200 (CEST) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id DD5E751456; Mon, 4 Sep 2017 15:45:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com DD5E751456 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=maxime.coquelin@redhat.com Received: from [10.36.112.11] (unknown [10.36.112.11]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C74268705; Mon, 4 Sep 2017 15:45:04 +0000 (UTC) To: Remy Horton , dev@dpdk.org, yliu@fridaylinux.org, jfreiman@redhat.com, tiwei.bie@intel.com Cc: mst@redhat.com, vkaplans@redhat.com, jasowang@redhat.com References: <20170831095023.21037-1-maxime.coquelin@redhat.com> <20170831095023.21037-11-maxime.coquelin@redhat.com> From: Maxime Coquelin Message-ID: Date: Mon, 4 Sep 2017 17:45:01 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=windows-1252; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Mon, 04 Sep 2017 15:45:16 +0000 (UTC) Subject: Re: [dpdk-dev] [PATCH 10/21] vhost: initialize vrings IOTLB caches X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Sep 2017 15:45:16 -0000 Hi Remy, On 09/04/2017 03:57 PM, Remy Horton wrote: > > On 31/08/2017 10:50, Maxime Coquelin wrote: > [..] >> +reset_vring_queue(struct virtio_net *dev, uint32_t vring_idx) >> { >> + struct vhost_virtqueue *vq = dev->virtqueue[vring_idx]; >> int callfd; > > Probably ought to have a bounds check on vring_idx.. Indeed, you are right. I'll fix it in next round. Thanks, Maxime