mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-08 18:23:57 -06:00
qcow2: add compress threads
Do data compression in separate threads. This significantly improve performance for qemu-img convert with -W (allow async writes) and -c (compressed) options. Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
This commit is contained in:
parent
2714f13d69
commit
ceb029cd6f
2 changed files with 64 additions and 1 deletions
|
@ -326,6 +326,9 @@ typedef struct BDRVQcow2State {
|
|||
* override) */
|
||||
char *image_backing_file;
|
||||
char *image_backing_format;
|
||||
|
||||
CoQueue compress_wait_queue;
|
||||
int nb_compress_threads;
|
||||
} BDRVQcow2State;
|
||||
|
||||
typedef struct Qcow2COWRegion {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue