Skip to content

migration/xbzrle: make xbzrle_encode_buffer little easier

Wei Yang qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 8 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2cutils: remove one unnecessary pointer operationutil/cutils.c+4 -43 replies
2/2migration/xbzrle: make xbzrle_encode_buffer little easier to readmigration/xbzrle.c+73 -805 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchDr. David Alan GilbertJuan Quintela
1/2R-b R-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [Qemu-devel] [PATCH 0/2] migration/xbzrle: make xbzrle_encode_buffer little easier

Current xbzrle_encode_buffer() do everything in a big loop, which is a little difficult for audience to catch the logic.

We can refine the logic with:

* get the length of a run
* encode it

At the same time, I found the encoding and decoding function has some extra pointer operation. Removing this could save some code space.

Wei Yang (2):
cutils: remove one unnecessary pointer operation migration/xbzrle: make xbzrle_encode_buffer little easier to read

 migration/xbzrle.c | 153 +++++++++++++++++++++------------------------
 util/cutils.c      |   8 +--
 2 files changed, 77 insertions(+), 84 deletions(-)
Signature · 1 line
2.19.1