From: "Michael S. Tsirkin" <mst@redhat.com>
To: "Dr. David Alan Gilbert" <dgilbert@redhat.com>
Cc: amit.shah@redhat.com, Paolo Bonzini <pbonzini@redhat.com>,
qemu-devel@nongnu.org, Juan Quintela <quintela@redhat.com>
Subject: Re: [Qemu-devel] [PATCH] Migration compatibility for serial
Date: Wed, 17 Jun 2015 13:36:53 +0200 [thread overview]
Message-ID: <20150617131637-mutt-send-email-mst@redhat.com> (raw)
In-Reply-To: <20150617105904.GE2122@work-vm>
On Wed, Jun 17, 2015 at 11:59:05AM +0100, Dr. David Alan Gilbert wrote:
> * Michael S. Tsirkin (mst@redhat.com) wrote:
> > On Wed, Jun 17, 2015 at 11:51:57AM +0100, Dr. David Alan Gilbert wrote:
> > > * Juan Quintela (quintela@redhat.com) wrote:
> > > > "Michael S. Tsirkin" <mst@redhat.com> wrote:
> > > > > On Wed, Jun 17, 2015 at 10:11:48AM +0200, Paolo Bonzini wrote:
> > > > >>
> > > > >>
> > > > >> On 17/06/2015 09:52, Michael S. Tsirkin wrote:
> > > > >> > > No, please. Upstream QEMU doesn't want to get into judgement about when
> > > > >> > > migration quality might be "good enough" that you can drop subsections.
> > > > >> > > It's one thing to perfect the .needed functions to make the appearance
> > > > >> > > of subsections as unlikely as possible, but adding flags is not
> > > > >> > > something we've done so far---and not something at least *I* want to do.
> > > > >> >
> > > > >> > Not like this, sure. But e.g. patches that force specific fields to
> > > > >> > behave in a way consistent with QEMU 2.2, with appropriate
> > > > >> > doducmentation would be ok I think.
> > > > >>
> > > > >> That's not what 2.2 means in "pc-i440fx-2.2". It means "same hardware
> > > > >> as 2.2", not "bug-compatible with 2.2".
> > > > >>
> > > > >> Refining the .needed functions (e.g. see commit bfa7362889) is just
> > > > >> that: describing when a subsection is needed. Forcing specific fields
> > > > >> to behave in a way consistent with QEMU 2.2 is bug compatibility.
> > > > >>
> > > > >> Paolo
> > > > >
> > > > > We do bug-compatible if it's not a big pain, too.
> > > >
> > > > In this case, there is disagreement about what is better:
> > > > - correct solution
> > > > - bug compatible
> > > >
> > > > We can't have both in this case :-(
> > > >
> > > > Notice that if "both" are 2.2 <improved>, i.e. 2.3 with -M
> > > > pc-i440fx-2.2, we also got the correct behaviour. So the matrix is
> > > > something like:
> > > >
> > > > Source: 2.2 Destination: 2.2 -> bug compatible 2.2
> > > > Source: 2.3 Destination: 2.2 -> breaks if serial is being used, works otherwise
> > > > Source: 2.3 Destination: 2.3 with -M pc-i440fx-2.2: works always
> > >
> > > To be fair the 2.3->2.2 is more subtle; opening it is unlikely
> > > to generate the subsections; it needs a bit more than that (certainly on Linux)
> > > figuring out exactly what triggers each subsection is trickier.
> > >
> > > Dave
> >
> > And more importantly, what is the result of skipping them,
> > like you proposed. E.g. if guests crash that's no
> > better than failing migration.
>
> I believe it's the same behaviour as qemu serial migration has been
> doing for many years when it never sent that data over, and I'm not
> aware of that ever causing us problems.
>
> Dave
A bit more data on testing and/or code analysis would be helpful
I think.
> > > >
> > > >
> > > > So the problem is 2.3 -> 2.2 when serial is being used (notice that just
> > > > opening it it is using). That is what we are differing about what is
> > > > the right thing to do. As Paolo says, in upstream, we have done in the
> > > > past the correct thing, in downstream, it depends.
> > > >
> > > > Notice that adding this patch makes that the three cases are bug
> > > > compatible, i.e. there is no way to detect breakage neither a way to fix
> > > > the issue (fix without the patch is just upgrade both binaries.
> > > > )
> > > >
> > > > Later, Juan.
> > > --
> > > Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
> --
> Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK
next prev parent reply other threads:[~2015-06-17 11:37 UTC|newest]
Thread overview: 42+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-06-16 18:54 [Qemu-devel] [PATCH] Migration compatibility for serial Dr. David Alan Gilbert (git)
2015-06-16 20:49 ` Michael S. Tsirkin
2015-06-17 9:09 ` Dr. David Alan Gilbert
2015-06-17 6:52 ` Markus Armbruster
2015-06-17 6:58 ` Michael S. Tsirkin
2015-06-17 7:11 ` Markus Armbruster
2015-06-17 7:25 ` Michael S. Tsirkin
2015-06-17 7:41 ` Paolo Bonzini
2015-06-17 7:52 ` Michael S. Tsirkin
2015-06-17 8:11 ` Paolo Bonzini
2015-06-17 10:13 ` Michael S. Tsirkin
2015-06-17 10:48 ` Juan Quintela
2015-06-17 10:51 ` Dr. David Alan Gilbert
2015-06-17 10:56 ` Michael S. Tsirkin
2015-06-17 10:59 ` Dr. David Alan Gilbert
2015-06-17 11:36 ` Michael S. Tsirkin [this message]
2015-06-17 10:55 ` Michael S. Tsirkin
2015-06-17 11:33 ` Paolo Bonzini
2015-06-17 11:40 ` Dr. David Alan Gilbert
2015-06-17 11:44 ` Paolo Bonzini
2015-06-17 11:48 ` Michael S. Tsirkin
2015-06-17 12:07 ` Dr. David Alan Gilbert
2015-06-17 12:20 ` Paolo Bonzini
2015-06-17 14:44 ` Michael S. Tsirkin
2015-06-17 16:34 ` Juan Quintela
2015-06-17 16:39 ` Michael S. Tsirkin
2015-06-17 16:40 ` Paolo Bonzini
2015-06-17 11:45 ` Michael S. Tsirkin
2015-06-17 11:53 ` Paolo Bonzini
2015-06-17 11:54 ` Michael S. Tsirkin
2015-06-17 11:55 ` Paolo Bonzini
2015-06-17 11:58 ` Michael S. Tsirkin
2015-06-17 12:20 ` Paolo Bonzini
2015-06-17 14:50 ` Michael S. Tsirkin
2015-06-17 16:16 ` Paolo Bonzini
2015-06-17 16:34 ` Michael S. Tsirkin
2015-06-17 16:35 ` Paolo Bonzini
2015-06-17 9:26 ` Juan Quintela
2015-06-17 10:37 ` Michael S. Tsirkin
2015-06-17 8:37 ` Dr. David Alan Gilbert
2015-06-17 8:49 ` Paolo Bonzini
2015-06-17 9:38 ` Dr. David Alan Gilbert
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=20150617131637-mutt-send-email-mst@redhat.com \
--to=mst@redhat.com \
--cc=amit.shah@redhat.com \
--cc=dgilbert@redhat.com \
--cc=pbonzini@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).