The buffer_find_nonzero_offset() will be called to check the zero page during live migration, it's a hot function. buffer_find_nonzero_offset() has already been optimized with SSE2 instructions, for platform that supports AVX2, we can optimize this function with AVX2 instructions and achieve about 25% performance gain.
Liang Li (2): cutils: add the AVX2 optimization configure: add --enable-avx2 option configure | 16 ++++++++++++++++ include/qemu-common.h | 7 +++++++ 2 files changed, 23 insertions(+) -- 1.9.1