From: "Michael S. Tsirkin" <mst@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Ryan Harper" <ryan.harper@canonical.com>,
"Serge Hallyn" <serge.hallyn@canonical.com>,
quintela@redhat.com, Libvirt <libvir-list@redhat.com>,
"Serge Hallyn" <serge.hallyn@ubuntu.com>,
"Markus Armbruster" <armbru@redhat.com>,
qemu-devel@nongnu.org, "Alexander Graf" <agraf@suse.de>,
"Alex Bligh" <alex@alex.org.uk>,
"Cole Robinson" <crobinso@redhat.com>,
"Amit Shah" <amit.shah@redhat.com>,
"Bruce Rogers" <brogers@suse.com>,
"Andreas Färber" <afaerber@suse.de>,
"Serge E. Hallyn" <serge@hallyn.com>
Subject: Re: [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm
Date: Sun, 5 Oct 2014 15:48:52 +0300 [thread overview]
Message-ID: <20141005124852.GA21294@redhat.com> (raw)
In-Reply-To: <1653319735.58506048.1412512005496.JavaMail.zimbra@redhat.com>
On Sun, Oct 05, 2014 at 08:26:45AM -0400, Paolo Bonzini wrote:
> > > > If you were just objecting to the fact that pc-1.0 was made to
> > > > be an alias of either one or the other at compile time, simply
> > > > drop the second patch of the v2 patchset.
> > >
> > > I was objecting to making pc-1.0 special. There's nothing special in
> > > pc-1.0, other machine types also had differences between qemu-kvm and
> > > qemu. And I do not think that upstream has any reason to make pc-1.0
> > > special.
> >
> > OK, so in v5, pc-1.0 is unchanged, and not made special. A new machine
> > type is added which allows import from something (unfortunately) called
> > pc-1.0 in something in qemu's past, as well as some distributions.
>
> The very fact that a clone of pc-1.0 is added, but not pc-0.15 or
> pc-1.2, makes pc-1.0 special.
>
> My proposal has always been that _all_ PC machines should have a property.
> This could be done, for example, by starting with Eduardo's patches that
> make a class hierarchy of PC machine types.
>
> pc-1.0 is special in Ubuntu world, because it was in an LTS release. This
> is why this patch should be added to Ubuntu, not to upstream. pc-1.0 is
> not necessarily special in other distros. And some of them (Fedora for
> example) are _always_ treating their machine types as the qemu-kvm variants,
> and have been doing so for
> a couple years.
>
> I very strongly object to including a patch upstream that is tailored
> after a particular downstream, and just because that particular downstream
> has failed in doing the integration testing that it was supposed to do.
>
> > > So, if Ubuntu is okay with breaking pc-1.0 migration from 14.04-old to
> > > 14.04-new, the right thing to do is simply that Ubuntu makes its pc-1.0
> > > machine type the qemu-kvm one. No new machine types, no aliases, no
> > > anything.
> >
> > That would not allow Ubuntu (or Suse - similarly affected I think)
> > to import pc-1.0 VMs from things actually running pc-1.0, and would
> > mean that newly created pc-1.0 VMs would be 'wrong', perpetuating
> > the problem.
>
> The problem _is_ perpetual. "pc-1.0" makes no sense without a context
> (the distro). This is why it is not a problem for Fedora to always use
> the qemu-kvm variants.
>
> "pc-1.0" will always be the qemu-kvm variant in Ubuntu context (apart
> from the 6 months passed since the release of 14.04), because most
> "pc-1.0" machines will have been created with the qemu-kvm package in
> Ubuntu 12.04.
>
> It can be confusing---to avoid confusion, RHEL drops the upstream machine
> types apart from the "pc" generic type and adopts a completely different
> nomenclature.
>
> In fact as time passes the benefit of 12.04->14.04 migration becomes
> smaller and smaller and, by now, it should have gone almost completely.
> It's much simpler to ignore the problem at this point. For the next
> Ubuntu LTS, Canonical should include migration compatibility in their
> test plans. And start well in advance, for it may only take one
> person to fix the bugs, but it takes months of testing to find them.
>
> Paolo
In fact, if the pc_piix bits are dropped from the patch,
you get a generic patchset that does exactly what you ask,
correct?
Downstream can then enable qemu-kvm compatibility by adding:
-global cirrus-vga.vgamem_mb=16 -global pit-common.qemu-kvm-migration=on
-global PIIX4_PM.qemu-kvm-migration=on
--
MST
next prev parent reply other threads:[~2014-10-05 12:46 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-22 19:34 [Qemu-devel] [PATCH v4] Add machine parameter qemu-kvm-migration for live migrate compatibility with qemu-kvm Alex Bligh
2014-09-22 19:34 ` Alex Bligh
2014-09-28 15:30 ` Michael S. Tsirkin
2014-09-28 20:33 ` Alex Bligh
2014-09-29 7:02 ` Markus Armbruster
2014-10-05 7:00 ` Paolo Bonzini
2014-10-05 10:26 ` Alex Bligh
2014-10-05 12:26 ` Paolo Bonzini
2014-10-05 12:48 ` Michael S. Tsirkin [this message]
2014-10-05 13:30 ` Paolo Bonzini
2014-09-29 10:08 ` Michael S. Tsirkin
2014-09-29 10:13 ` Alex Bligh
2014-09-29 14:52 ` Serge E. Hallyn
2014-10-04 16:29 ` Alex Bligh
2014-09-24 8:05 ` Markus Armbruster
2014-09-24 8:29 ` Alex Bligh
2014-09-24 8:38 ` Michael Tokarev
2014-09-25 8:02 ` 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=20141005124852.GA21294@redhat.com \
--to=mst@redhat.com \
--cc=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=alex@alex.org.uk \
--cc=amit.shah@redhat.com \
--cc=armbru@redhat.com \
--cc=brogers@suse.com \
--cc=crobinso@redhat.com \
--cc=libvir-list@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=quintela@redhat.com \
--cc=ryan.harper@canonical.com \
--cc=serge.hallyn@canonical.com \
--cc=serge.hallyn@ubuntu.com \
--cc=serge@hallyn.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).