From: Juan Quintela <quintela@trasno.org>
To: Luiz Capitulino <lcapitulino@redhat.com>
Cc: Paolo Bonzini <bonzini@gnu.org>, qemu-devel@nongnu.org, gleb@redhat.com
Subject: [Qemu-devel] Re: save/restore broken?
Date: Thu, 13 Aug 2009 21:23:02 +0200 [thread overview]
Message-ID: <m3fxbvecx5.fsf@neno.mitica> (raw)
In-Reply-To: <20090813154827.409ed832@doriath> (Luiz Capitulino's message of "Thu, 13 Aug 2009 15:48:27 -0300")
Luiz Capitulino <lcapitulino@redhat.com> wrote:
> On Tue, 11 Aug 2009 18:39:47 +0200
> Paolo Bonzini <bonzini@gnu.org> wrote:
>
>> Hi all,
>>
>> if I try to save and restore an image using current qemu and current
>> libvirt, the load fails.
>
> Yes, it's broken. I'm unable to loadvm and to migrate.
>
> According to git bisect the problem was introduced by:
>
> """
> commit 93c8cfd9e67a62711b86f4c93747566885eb7928
> Author: Gleb Natapov <gleb@redhat.com>
> Date: Sun Aug 2 11:36:47 2009 +0300
>
> make windows notice media change
> """
>
> Indeed, reverting this fixes it for me.
>
> When I try to loadvm I get this error:
>
> """
> Unknown savevm section type 255
> Error -22 while loading VM state
> """
>
> The migration symptoms are different. Sometimes it
> prints the same message, sometimes it kind of works
> but gets strange behaviors.
This patch fixes it for me, could you take a look if it also fixes things for you?
Thanks.
>From 1322dfad92766a402c341071b0d55be6e510ebb1 Mon Sep 17 00:00:00 2001
From: Juan Quintela <quintela@redhat.com>
Date: Thu, 13 Aug 2009 21:07:05 +0200
Subject: [PATCH] Fix migration, if we read a field, it is better if we wrote it first
Signed-off-by: Juan Quintela <quintela@redhat.com>
---
hw/ide.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/hw/ide.c b/hw/ide.c
index bebda7c..1e38ae3 100644
--- a/hw/ide.c
+++ b/hw/ide.c
@@ -2888,6 +2888,7 @@ static void ide_save(QEMUFile* f, IDEState *s)
qemu_put_8s(f, &s->sense_key);
qemu_put_8s(f, &s->asc);
+ qemu_put_8s(f, &s->cdrom_changed);
/* XXX: if a transfer is pending, we do not save it yet */
}
--
1.6.2.5
prev parent reply other threads:[~2009-08-13 19:25 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-11 16:39 [Qemu-devel] save/restore broken? Paolo Bonzini
2009-08-13 18:48 ` Luiz Capitulino
2009-08-13 18:59 ` Anthony Liguori
2009-08-13 19:55 ` Gleb Natapov
2009-08-13 20:08 ` Luiz Capitulino
2009-08-13 19:23 ` Juan Quintela [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m3fxbvecx5.fsf@neno.mitica \
--to=quintela@trasno.org \
--cc=bonzini@gnu.org \
--cc=gleb@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.