All of lore.kernel.org
 help / color / mirror / Atom feed
From: Maxime Coquelin <maxime.coquelin@redhat.com>
To: Cornelia Huck <cornelia.huck@de.ibm.com>,
	Michael Roth <mdroth@linux.vnet.ibm.com>
Cc: mst@redhat.com, qemu-devel@nongnu.org, marcel@redhat.com,
	eblake@redhat.com, qemu-stable@nongnu.org, stefanha@redhat.com,
	dgilbert@redhat.com
Subject: Re: [Qemu-devel] [Qemu-stable] [PATCH v2] virtio-bus: Plug devices after features are negotiated
Date: Wed, 14 Dec 2016 09:28:51 +0100	[thread overview]
Message-ID: <94a0c474-4998-b03a-9353-d41d0e4e690f@redhat.com> (raw)
In-Reply-To: <20161214084451.2a5236d2.cornelia.huck@de.ibm.com>



On 12/14/2016 08:44 AM, Cornelia Huck wrote:
>> > 14:44 < stefanha> Not sure if anyone can think of a nicer solution.
>> > 14:45 < stefanha> But we're going to have to keep lying to the guest if we want to preserve migration compatibility
>> > 14:45 < stefanha> The key change in behavior with the patch you identified is:
>> > 14:46 < stefanha> if (!virtio_has_feature(vdev->host_features, VIRTIO_F_VERSION_1)) {
>> > 14:46 < stefanha> virtio_pci_disable_modern(proxy);
>> > 14:46 < stefanha> Previously it didn't care about vdev->host_features.  It simply allowed VERSION_1 when proxy's disable_modern boolean was false.
>> > 14:47 < mdroth> stefanha: ok, that explains why it seems to work with disable-modern=true
>> > 14:48 < stefanha> mdroth: Your Ubuntu kernel old but 14.04 LTS is definitely still around so I don't think we can ship QEMU 2.8 like this.
>> > 14:49 < stefanha> mdroth: Let's summarize it on the mailing list and see what Michael Tsirkin and Maxime Coquelin think.
>> > 14:49 < mdroth> stefanha: i suppose a potential workaround would be to tell users to set disable-modern= to match their vhost capabilities, but it's hard for them to apply that retroactively if they're looking to migrate
> Another thought: Maybe this bug only surfaced right now because older
> qemus defaulted virtio-pci to legacy?
>
> (I think modern virtio-pci with old vhost resulted in a config that was
> rejected at least by Linux guests. Because pci defaulted to legacy, we
> only had the post-plugged workaround for ccw before.)

Yes, for PCI with old vhost, modern enabled and recent kernel on guest,
we get this failure at virtio-pci probe time:

virtio_net virtio0: virtio: device uses modern interface but does not 
have VIRTIO_F_VERSION_1.

  - Maxime

  reply	other threads:[~2016-12-14  8:29 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-13 13:30 [Qemu-devel] [PATCH v2] virtio-bus: Plug devices after features are negotiated Maxime Coquelin
2016-12-13 21:27 ` [Qemu-devel] [Qemu-stable] " Michael Roth
2016-12-14  7:44   ` Cornelia Huck
2016-12-14  8:28     ` Maxime Coquelin [this message]
2016-12-14  8:41       ` Stefan Hajnoczi
2016-12-14  8:59         ` Cornelia Huck
2016-12-14  9:44           ` Maxime Coquelin
2016-12-14  9:50             ` Dr. David Alan Gilbert
2016-12-14 10:02               ` Maxime Coquelin
2016-12-14 10:08             ` Cornelia Huck
2016-12-14 11:48               ` Marcel Apfelbaum
2016-12-14  8:20   ` Maxime Coquelin

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=94a0c474-4998-b03a-9353-d41d0e4e690f@redhat.com \
    --to=maxime.coquelin@redhat.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=dgilbert@redhat.com \
    --cc=eblake@redhat.com \
    --cc=marcel@redhat.com \
    --cc=mdroth@linux.vnet.ibm.com \
    --cc=mst@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-stable@nongnu.org \
    --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 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.