Hi
In current changeset.,qemu copy data
uses memcpy_words, which copies 4 bytes at once if the length is
larger than 4. This causes unaligned reference and leads to a performance
downgrade. The issue met in rtl8139 emulator. This patch fixes it.
Send Package from guest
Version
size
speed
time
Original
226MB
1.3MB/s 2:54
memcpy
226MB
2.8MB/s 1:22
Receive Package
Version
size
speed
time
Original
226MB
1.7MB/s 2:10
memcpy
226MB
6.0MB/s 38 s
Thanks
Signed-off-by: Duan Ronghui Ronghui.duan@xxxxxxxxx