diff options
author | Xiao Guangrong <xiaoguangrong@tencent.com> | 2018-03-30 15:51:21 +0800 |
---|---|---|
committer | Dr. David Alan Gilbert <dgilbert@redhat.com> | 2018-04-25 18:04:07 +0100 |
commit | 797ca154b4c68dbd8e93382f714388ab311f672d (patch) | |
tree | 49bdb088879f888ed6f7afa26681b373766436bd /bt-vhci.c | |
parent | dcaf446ebda5d87e05eb41cdbafb7ae4a7cc4a62 (diff) | |
download | qemu-797ca154b4c68dbd8e93382f714388ab311f672d.zip qemu-797ca154b4c68dbd8e93382f714388ab311f672d.tar.gz qemu-797ca154b4c68dbd8e93382f714388ab311f672d.tar.bz2 |
migration: stop decompression to allocate and free memory frequently
Current code uses uncompress() to decompress memory which manages
memory internally, that causes huge memory is allocated and freed
very frequently, more worse, frequently returning memory to kernel
will flush TLBs
So, we maintain the memory by ourselves and reuse it for each
decompression
Reviewed-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Jiang Biao <jiang.biao2@zte.com.cn>
Signed-off-by: Xiao Guangrong <xiaoguangrong@tencent.com>
Message-Id: <20180330075128.26919-4-xiaoguangrong@tencent.com>
Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Diffstat (limited to 'bt-vhci.c')
0 files changed, 0 insertions, 0 deletions