Init the XBZRLE.lock in ram_mig_init
commitd97326eec2ca1313eaf0b5cffd69af5663b5af5d
authorDr. David Alan Gilbert <dgilbert@redhat.com>
Wed, 19 Mar 2014 18:32:31 +0000 (19 18:32 +0000)
committerJuan Quintela <quintela@redhat.com>
Mon, 5 May 2014 20:15:03 +0000 (5 22:15 +0200)
tree9329c32143b42fa2c79a13e166a3e7439c4343d0
parent0d6ab3ab9149767eba192ec5ad659fd34e55a291
Init the XBZRLE.lock in ram_mig_init

Initialising the XBZRLE.lock earlier simplifies the lock use.

Based on Markus's patch in:
http://lists.gnu.org/archive/html/qemu-devel/2014-03/msg03879.html

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