From: Cornelia Huck <cornelia.huck@de.ibm.com>
To: "Michael S. Tsirkin" <mst@redhat.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>,
Jason Wang <jasowang@redhat.com>,
qemu-devel@nongnu.org
Subject: [Qemu-devel] [2.5 issue] virtio-1 in virtio-net and old vhost
Date: Tue, 1 Dec 2015 11:11:08 +0100 [thread overview]
Message-ID: <20151201111108.6dd85381.cornelia.huck@de.ibm.com> (raw)
Some of our test folks tried to run a recent-ish qemu (nearly 2.5)
combined with an old host kernel (and a virtio-1 capable guest).
In that setup, we had the transport (in that case, virtio-ccw)
advertise VERSION_1 as it is a revision 1 device. However, the old
vhost driver did not support virtio-1 and therefore cleared the
VERSION_1 bit. In the end, qemu did not offer VERSION_1 to the guest
for a revision 1 device, which the guest treats as a fatal error.
It looks to me as if virtio-pci has the same problem: The kernel will
detect a modern device as by the I/O layout and then barf at the
missing VERSION_1 feature bit.
We _could_ make this missing VERSION_1 bit non-fatal in the guest, but
that does not fix guests that are already out there.
The problem is that the transport cannot know whether the VERSION_1 bit
will be pulled from under it later during device setup: This is only
done in the ->get_features() callback when virtio-net will handle the
features supported by vhost.
I'm currently lacking a good idea on how to fix this, but I think that
is an issue that should be dealt with for 2.5...
next reply other threads:[~2015-12-01 10:11 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-12-01 10:11 Cornelia Huck [this message]
2015-12-01 12:10 ` [Qemu-devel] [2.5 issue] virtio-1 in virtio-net and old vhost Cornelia Huck
2015-12-01 14:21 ` Cornelia Huck
2015-12-02 5:54 ` Jason Wang
2015-12-02 10:11 ` Cornelia Huck
2015-12-02 12:41 ` Michael S. Tsirkin
2015-12-04 2:06 ` Jason Wang
2015-12-04 10:15 ` Cornelia Huck
2015-12-04 13:36 ` Michael S. Tsirkin
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=20151201111108.6dd85381.cornelia.huck@de.ibm.com \
--to=cornelia.huck@de.ibm.com \
--cc=borntraeger@de.ibm.com \
--cc=jasowang@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/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).