]> git.proxmox.com Git - mirror_qemu.git/commit
XBZRLE: Fix qemu crash when resize the xbzrle cache
authorGonglei <arei.gonglei@huawei.com>
Tue, 4 Mar 2014 13:29:21 +0000 (21:29 +0800)
committerJuan Quintela <quintela@redhat.com>
Sat, 8 Mar 2014 21:22:34 +0000 (22:22 +0100)
commitfd8cec932c2ddc687e2da954978954b46a926f90
treeed4bf190847be8c83a08242b14eeda5eb188381e
parentf53f3d0a00b6df39ce8dfca942608e5b6a9a4f71
XBZRLE: Fix qemu crash when resize the xbzrle cache

Resizing the xbzrle cache during migration causes qemu-crash,
because the main-thread and migration-thread modify the xbzrle
cache size concurrently without lock-protection.

Signed-off-by: ChenLiang <chenliang88@huawei.com>
Signed-off-by: Gonglei <arei.gonglei@huawei.com>
Reviewed-by: Dr. David Alan Gilbert <dgilbert@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
arch_init.c