summaryrefslogtreecommitdiffstats
path: root/qapi-schema.json
diff options
context:
space:
mode:
authorDr. David Alan Gilbert2015-11-12 16:38:27 +0100
committerJuan Quintela2015-11-12 17:55:27 +0100
commit389775d1f67b2c8f44f9473b1e5363735972e389 (patch)
treead1804bc9419188fea46330d038de3d3159e5b36 /qapi-schema.json
parentmigrate-start-postcopy: Improve text (diff)
downloadqemu-389775d1f67b2c8f44f9473b1e5363735972e389.tar.gz
qemu-389775d1f67b2c8f44f9473b1e5363735972e389.tar.xz
qemu-389775d1f67b2c8f44f9473b1e5363735972e389.zip
migration_init: Fix lock initialisation/make it explicit
Peter reported a lock error on MacOS after my a82d593b patch. migrate_get_current does one-time initialisation of a bunch of variables. migrate_init does reinitialisation even on a 2nd migrate after a cancel. The problem here was that I'd initialised the mutex in migrate_get_current, and the memset in migrate_init corrupted it. Remove the memset and replace it by explicit initialisation of fields that need initialising; this also turns out to be simpler than the old code that had to preserve some fields. Reported-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Dr. David Alan Gilbert <dgilbert@redhat.com> Fixes: a82d593b Reviewed-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Juan Quintela <quintela@redhat.com>
Diffstat (limited to 'qapi-schema.json')
0 files changed, 0 insertions, 0 deletions