From: Paolo Bonzini <pbonzini@redhat.com>
To: Igor Mammedov <imammedo@redhat.com>
Cc: quintela@redhat.com, dgilbert@redhat.com,
Pavel.Dovgaluk@ispras.ru, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] broken backward migration due to commit 461a275 "parallel: adding vmstate for save/restore"
Date: Fri, 19 Dec 2014 14:10:58 +0100 [thread overview]
Message-ID: <549423E2.6020806@redhat.com> (raw)
In-Reply-To: <20141219134237.224005b6@nial.brq.redhat.com>
On 19/12/2014 13:42, Igor Mammedov wrote:
> On Fri, 19 Dec 2014 13:02:24 +0100
> Paolo Bonzini <pbonzini@redhat.com> wrote:
>
>>
>>
>> On 19/12/2014 12:32, Igor Mammedov wrote:
>>> There is one more commit that breaks it, this time with subsection
>>> 6c3bff0 "exec: Save CPUState::exception_index field"
>>>
>>> qemu: warning: error while loading state for instance 0x0 of device 'cpu_common'
>>> the same reproducer with -parallel none
>>
>> Patch sent, thanks.
>>
>> Paolo
>
> one more breakage:
> a28fe7e pckbd: adding new fields to vmstate
>
> source:
> qemu-system-x86_64 -monitor stdio -M pc-i440fx-1.7 -parallel none xpsp3x86.qcow2
>
> switch to text screen where you could select Safe Mode and stop/migrate at this point
>
> target:
> qemu-system-x86_64-1.7 -monitor stdio -M pc-i440fx-1.7 -incoming "exec: gzip -c -d STATEFILE.gz" xpsp3x86.qcow2
>
> qemu: warning: error while loading state for instance 0x0 of device 'pckbd'
Looks like Windows (all versions) writes 0xDD and 0xDF to the outport
port of the keyboard controller when it enables/disables the A20 line.
There are two possibilities:
1) disable this if you care about backwards-migration
2) apply upstream a patch like this:
diff --git a/hw/input/pckbd.c b/hw/input/pckbd.c
index 2b0cd3d..cb4a8be 100644
--- a/hw/input/pckbd.c
+++ b/hw/input/pckbd.c
@@ -373,7 +373,7 @@ static void kbd_reset(void *opaque)
static uint8_t kbd_outport_default(KBDState *s)
{
- return KBD_OUT_RESET | KBD_OUT_A20
+ return (0xdf & ~KBD_OUT_OBF & ~KBD_OUT_MOUSE_OBF)
| (s->status & KBD_STAT_OBF ? KBD_OUT_OBF : 0)
| (s->status & KBD_STAT_MOUSE_OBF ? KBD_OUT_MOUSE_OBF : 0);
}
3) do both, so upstream works better
Paolo
prev parent reply other threads:[~2014-12-19 13:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-12-19 11:03 [Qemu-devel] broken backward migration due to commit 461a275 "parallel: adding vmstate for save/restore" Igor Mammedov
2014-12-19 11:15 ` Paolo Bonzini
2014-12-19 11:32 ` Igor Mammedov
2014-12-19 11:39 ` Igor Mammedov
2014-12-19 12:02 ` Paolo Bonzini
2014-12-19 12:42 ` Igor Mammedov
2014-12-19 12:49 ` Igor Mammedov
2014-12-19 13:21 ` Paolo Bonzini
2014-12-19 13:10 ` Paolo Bonzini [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=549423E2.6020806@redhat.com \
--to=pbonzini@redhat.com \
--cc=Pavel.Dovgaluk@ispras.ru \
--cc=dgilbert@redhat.com \
--cc=imammedo@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).