All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: Halil Pasic <pasic@linux.ibm.com>
Cc: Eric Auger <eric.auger@redhat.com>,
	qemu-s390x@nongnu.org, qemu-devel@nongnu.org,
	"Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH 0/2] virtio: non-legacy device handling
Date: Thu, 23 Jul 2020 08:35:18 +0200	[thread overview]
Message-ID: <20200723083518.5076eb60.cohuck@redhat.com> (raw)
In-Reply-To: <20200720115406.508f2115.pasic@linux.ibm.com>

On Mon, 20 Jul 2020 11:54:06 +0200
Halil Pasic <pasic@linux.ibm.com> wrote:

> On Tue,  7 Jul 2020 12:54:44 +0200
> Cornelia Huck <cohuck@redhat.com> wrote:
> 
> > As discussed in "virtio-fs: force virtio 1.x usage", it seems like
> > a good idea to make sure that any new virtio device (which does not
> > support legacy virtio) is indeed a non-transitional device, just to
> > catch accidental misconfigurations. We can easily compile a list
> > of virtio devices with legacy support and have transports verify
> > in their plugged callbacks that legacy support is off for any device
> > not in that list.
> > 
> > Most new virtio devices force non-transitional already, so nothing
> > changes for them. vhost-user-fs-pci even does not allow to configure
> > a non-transitional device, so it is fine as well.
> > 
> > One problematic device, however, is virtio-iommu-pci. It currently
> > offers both the transitional and the non-transitional variety of the
> > device, and does not force anything. I'm unsure whether we should
> > consider transitional virtio-iommu unsupported, or if we should add
> > some compat handling. (The support for legacy or not generally may
> > change based upon the bus, IIUC, so I'm unsure how to come up with
> > something generic.)
> >   
> 
> Both patches look good to me (Acked-by: Halil Pasic
> <pasic@linux.ibm.com>). I tend to agree with Davids comment on how
> this information is coded: the more object oriented way would have
> been to store this at the something like VirtioDeviceClass, but
> Michael's argument stands.
> 
> Another OO option would be to expose this as a virtio property. Would
> enable introspection, and would also give the host admin means to
> force non-legacy for transitional devices. But the juice is probably not
> worth the squeeze.

I agree, that would be a lot of hassle for exposing what is basically
static information.



      reply	other threads:[~2020-07-23  6:36 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-07 10:54 [PATCH 0/2] virtio: non-legacy device handling Cornelia Huck
2020-07-07 10:54 ` [PATCH 1/2] virtio: list legacy-capable devices Cornelia Huck
2020-07-07 10:54 ` [PATCH 2/2] virtio: verify that legacy support is not accidentally on Cornelia Huck
2020-07-16 13:43 ` [PATCH 0/2] virtio: non-legacy device handling Cornelia Huck
2020-07-20  8:09 ` David Hildenbrand
2020-07-20  9:03   ` Michael S. Tsirkin
2020-07-20  9:07     ` David Hildenbrand
2020-07-23  6:33       ` Cornelia Huck
2020-07-23 11:57         ` David Hildenbrand
2020-07-23 12:15           ` Cornelia Huck
2020-07-23 12:54             ` Michael S. Tsirkin
2020-07-20  9:54 ` Halil Pasic
2020-07-23  6:35   ` Cornelia Huck [this message]

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=20200723083518.5076eb60.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=eric.auger@redhat.com \
    --cc=mst@redhat.com \
    --cc=pasic@linux.ibm.com \
    --cc=qemu-devel@nongnu.org \
    --cc=qemu-s390x@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 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.