From mboxrd@z Thu Jan 1 00:00:00 1970 From: Maxime Coquelin Subject: Re: [PATCH 10/21] vhost: initialize vrings IOTLB caches Date: Mon, 4 Sep 2017 17:45:01 +0200 Message-ID: References: <20170831095023.21037-1-maxime.coquelin@redhat.com> <20170831095023.21037-11-maxime.coquelin@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit Cc: mst@redhat.com, vkaplans@redhat.com, jasowang@redhat.com To: Remy Horton , dev@dpdk.org, yliu@fridaylinux.org, jfreiman@redhat.com, tiwei.bie@intel.com 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) In-Reply-To: Content-Language: en-US List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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