diff options
author | Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp> | 2011-02-03 13:34:08 +0900 |
---|---|---|
committer | Anthony Liguori <aliguori@us.ibm.com> | 2011-02-04 06:53:51 -0600 |
commit | ea01a58014edc23d59d73de338db7fdd8649a67c (patch) | |
tree | 314ad8b0c58e06ebf658d14ef33374b59af19ba2 /qemu-thread.c | |
parent | 0833073edf5da9802f85c49d5fd10efb4e4b3422 (diff) | |
download | qemu-ea01a58014edc23d59d73de338db7fdd8649a67c.tar.gz |
savevm: fix corruption in vmstate_subsection_load().
Although it's rare to happen in live migration, when the head of a
byte stream contains 0x05 which is the marker of subsection, the
loader gets corrupted because vmstate_subsection_load() continues even
the device doesn't require it. This patch adds a checker whether
subsection is needed, and skips following routines if not needed.
Signed-off-by: Yoshiaki Tamura <tamura.yoshiaki@lab.ntt.co.jp>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
(cherry picked from commit eb60260de0b050a5e8ab725e84d377d0b44c43ae)
Diffstat (limited to 'qemu-thread.c')
0 files changed, 0 insertions, 0 deletions