]> Git Repo - qemu.git/commit
vmstate: Avoid seeking
authorJan Kiszka <[email protected]>
Wed, 2 Dec 2009 11:36:35 +0000 (12:36 +0100)
committerAnthony Liguori <[email protected]>
Thu, 3 Dec 2009 16:04:53 +0000 (10:04 -0600)
commit21174c34b6b9ace9ad82e0deb13be752d28a5907
tree9a9c59436a56407f2c9139bf4cb6c2bdeebb97ef
parente560125e2692714054b718b51211f32a311538b5
vmstate: Avoid seeking

Seeking on vmstate save/load does not work if the underlying file is a
stream. We could try to make all QEMUFile* forward-seek-aware, but first
attempts in this direction indicated that it's saner to convert the few
qemu_fseek-on-vmstates users to plain reads/writes.

This fixes various subtle vmstate corruptions where unused fields were
involved.

Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Juan Quintela <[email protected]>
Signed-off-by: Anthony Liguori <[email protected]>
savevm.c
This page took 0.021521 seconds and 4 git commands to generate.