Thread (98 messages) 98 messages, 12 authors, 2016-03-11

Re: [PATCH v3 2/8] vhost: introduce vhost_log_write

From: Yuanhan Liu <hidden>
Date: 2016-02-22 06:58:22

On Fri, Feb 19, 2016 at 03:26:36PM +0100, Thomas Monjalon wrote:
2016-01-29 12:57, Yuanhan Liu:
quoted
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 <redacted>
Signed-off-by: Victor Kaplansky <redacted>
Tested-by: Pavel Fedin <redacted>
[...]
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help