From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas Monjalon Subject: Re: [PATCH v3 2/8] vhost: introduce vhost_log_write Date: Fri, 19 Feb 2016 15:26:36 +0100 Message-ID: <11566175.eoXr2zdVvr@xps13> 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> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7Bit Cc: dev@dpdk.org, Victor Kaplansky , "Michael S. Tsirkin" To: Yuanhan Liu Return-path: Received: from mail-wm0-f54.google.com (mail-wm0-f54.google.com [74.125.82.54]) by dpdk.org (Postfix) with ESMTP id 276BCC3DC for ; Fri, 19 Feb 2016 15:35:52 +0100 (CET) Received: by mail-wm0-f54.google.com with SMTP id g62so79267140wme.1 for ; Fri, 19 Feb 2016 06:35:52 -0800 (PST) In-Reply-To: <1454043483-24579-3-git-send-email-yuanhan.liu@linux.intel.com> List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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' I think it's better to squash with the next patch.