From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id A4D2A58D6 for ; Mon, 22 Feb 2016 07:58:22 +0100 (CET) Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by orsmga102.jf.intel.com with ESMTP; 21 Feb 2016 22:58:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.22,483,1449561600"; d="scan'208";a="656964402" Received: from yliu-dev.sh.intel.com (HELO yliu-dev) ([10.239.66.49]) by FMSMGA003.fm.intel.com with ESMTP; 21 Feb 2016 22:58:21 -0800 Date: Mon, 22 Feb 2016 14:59:30 +0800 From: Yuanhan Liu To: Thomas Monjalon Message-ID: <20160222065930.GX21426@yliu-dev.sh.intel.com> References: <1450321921-27799-1-git-send-email-yuanhan.liu@linux.intel.com> <1454043483-24579-1-git-send-email-yuanhan.liu@linux.intel.com> <1454043483-24579-3-git-send-email-yuanhan.liu@linux.intel.com> <11566175.eoXr2zdVvr@xps13> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <11566175.eoXr2zdVvr@xps13> User-Agent: Mutt/1.5.23 (2014-03-12) Cc: dev@dpdk.org, Victor Kaplansky , "Michael S. Tsirkin" Subject: Re: [dpdk-dev] [PATCH v3 2/8] vhost: introduce vhost_log_write X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 22 Feb 2016 06:58:23 -0000 On Fri, Feb 19, 2016 at 03:26:36PM +0100, Thomas Monjalon wrote: > 2016-01-29 12:57, Yuanhan Liu: > > Introduce vhost_log_write() helper function to log the dirty pages we > > touched. Page size is harded code to 4096 (VHOST_LOG_PAGE), and each > > log is presented by 1 bit. > > > > Therefore, vhost_log_write() simply finds the right bit for related > > page we are gonna change, and set it to 1. dev->log_base denotes the > > start of the dirty page bitmap. > > > > Signed-off-by: Yuanhan Liu > > Signed-off-by: Victor Kaplansky > > Tested-by: Pavel Fedin > [...] > > +static inline void __attribute__((always_inline)) > > +vhost_log_write(struct virtio_net *dev, uint64_t addr, uint64_t len) > > lib/librte_vhost/vhost_rxtx.c:59:1: error: unused function 'vhost_log_write' Oops. This functions was defined in a header file. I then moved it to vhost_rxtx.c, but I forgot to do the compile test :( > I think it's better to squash with the next patch. Yes, and thanks! --yliu