qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Greg Kurz <groug@kaod.org>
To: Eduardo Habkost <ehabkost@redhat.com>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
	Stefan Hajnoczi <stefanha@gmail.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	qemu-stable@nongnu.org, Halil Pasic <pasic@linux.vnet.ibm.com>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH for-2.8.1 v2] machine: Convert abstract typename on compat_props to subclass names
Date: Wed, 14 Dec 2016 18:22:33 +0100	[thread overview]
Message-ID: <20161214182233.0fb3c1e5@bahia.lan> (raw)
In-Reply-To: <20161214170427.GK3808@thinpad.lan.raisama.net>

On Wed, 14 Dec 2016 15:04:27 -0200
Eduardo Habkost <ehabkost@redhat.com> wrote:

> On Wed, Dec 14, 2016 at 04:42:14PM +0100, Greg Kurz wrote:
> > On Mon, 12 Dec 2016 18:49:05 -0200
> > Eduardo Habkost <ehabkost@redhat.com> wrote:
> >   
> > > Original problem description by Greg Kurz:
> > >   
> > > > Since commit "9a4c0e220d8a hw/virtio-pci: fix virtio
> > > > behaviour", passing -device virtio-blk-pci.disable-modern=off
> > > > has no effect on 2.6 machine types because the internal
> > > > virtio-pci.disable-modern=on compat property always prevail.    
> > > 
> > > The same bug also affects other abstract type names mentioned on
> > > compat_props by machine-types: apic-common, i386-cpu, pci-device,
> > > powerpc64-cpu, s390-skeys, spapr-pci-host-bridge, usb-device,
> > > virtio-pci, x86_64-cpu.
> > > 
> > > The right fix for this problem is to make sure compat_props and
> > > -global options are always applied in the order they are
> > > registered, instead of reordering them based on the type
> > > hierarchy. But changing the ordering rules of -global is risky
> > > and might break existing configurations, so we shouldn't do that
> > > on a stable branch.
> > > 
> > > This is a temporary hack that will work around the bug when
> > > registering compat_props properties: if we find an abstract class
> > > on compat_props, register properties for all its non-abstract
> > > subtypes instead. This will make sure -global won't be overridden
> > > by compat_props, while keeping the existing ordering rules on
> > > -global options.
> > > 
> > > Note that there's one case that won't be fixed by this hack:
> > > "-global spapr-pci-vfio-host-bridge.<option>=<value>" won't be
> > > able to override compat_props, because spapr-pci-host-bridge is
> > > not an abstract class.
> > > 
> > > Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
> > > ---  
> > 
> > This patch had 3 r-b. Is there any good reason to hold
> > it up to 2.8.1 ?  
> 
> Applying it today would mean delaying the 2.8.0 release, and the
> bug is not serious enough to justify that.
> 

IIUC there will be a v2.8.0-rc4 because we want this patch in 2.8:

[PATCH v3] virtio-pci: Fix cross-version migration  with older machines

From IRC:

<stefanha> mcoquelin: Once Michael Tsirkin has reviewed your patch I'll merge it and tag v2.8.0-rc4 (today or tomorrow?).  The QEMU 2.8 release will be next Tuesday.

  reply	other threads:[~2016-12-14 17:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-12 20:49 [Qemu-devel] [PATCH for-2.8.1 v2] machine: Convert abstract typename on compat_props to subclass names Eduardo Habkost
2016-12-13 11:49 ` Cornelia Huck
2016-12-13 12:17 ` Halil Pasic
2016-12-13 12:56 ` Greg Kurz
2016-12-14 15:42 ` Greg Kurz
2016-12-14 17:04   ` Eduardo Habkost
2016-12-14 17:22     ` Greg Kurz [this message]
2016-12-14 17:31       ` Eduardo Habkost

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=20161214182233.0fb3c1e5@bahia.lan \
    --to=groug@kaod.org \
    --cc=cornelia.huck@de.ibm.com \
    --cc=ehabkost@redhat.com \
    --cc=mst@redhat.com \
    --cc=pasic@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@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).