From: Cornelia Huck <cohuck@redhat.com>
To: Siwei Liu <loseweigh@gmail.com>
Cc: Venu Busireddy <venu.busireddy@oracle.com>,
Roman Kagan <rkagan@virtuozzo.com>,
si-wei liu <si-wei.liu@oracle.com>,
"Michael S . Tsirkin" <mst@redhat.com>,
Marcel Apfelbaum <marcel@redhat.com>,
virtio-dev@lists.oasis-open.org, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [virtio-dev] Re: [PATCH v3 0/3] Use of unique identifier for pairing virtio and passthrough devices...
Date: Wed, 4 Jul 2018 14:15:23 +0200 [thread overview]
Message-ID: <20180704141523.377cb66d.cohuck@redhat.com> (raw)
In-Reply-To: <CADGSJ23+sZiMCx=n=DytZ=TT2z7i0sMhrmnPuFYtuZhSc=qA+Q@mail.gmail.com>
On Tue, 3 Jul 2018 16:31:03 -0700
Siwei Liu <loseweigh@gmail.com> wrote:
> On Tue, Jul 3, 2018 at 7:52 AM, Cornelia Huck <cohuck@redhat.com> wrote:
> > From my point of view, there are several concerns:
> > - This approach assumes a homogeneous pairing (same transport), and
> > even more, it assumes that this transport is pci.
>
> Not really.
>
> There could be some other place to define a generic (transport
> independent) virtio feature, whereas the data (group ID) can be stored
> in transport specific way. That generic virtio feature and the way to
> specify target transport to group with is yet to be defined. I don't
> see this patch is in conflict with that direction.
Sorry, but I really do not see how this is not pci-specific.
- One of your components is a bridge. A transport does not necessarily
have that concept, at least not in a way meaningful for this approach
to work.
- Even if we can introduce transport-specific ways for other
transports, the bridge concept still means that the pairing cannot be
cross-transport.
I think we should be clear what we want from a generic
(transport-agnostic) virtio feature first. Probably some way to relay
an identifier of the to-be-paired device (transport-specific +
information what the transport is?)
> > - It won't work for zPCI (although zPCI is really strange) -- this
> > means it will be completely unusable on s390x.
> I still need more information about this use case. First off, does
> zPCI support all the hot plug semantics or functionality the same way
> as PCI? Or there has to be some platform or firmeware support like
> ACPI hotplug? Does QEMU have all the pieces ready for s390 zPCI
> hotplug?
zPCI is a strange beast, so first a pointer to a writeup I did:
https://virtualpenguins.blogspot.de/2018/02/notes-on-pci-on-s390x.html
It does support hotplug, within the s390 architectural context, but
that should be fine for our needs here.
My concern comes from the 'no topology' issue. We build a fake topology
in QEMU (to use the generic pci infrastructure), but the guest does not
see any of this. It issues an instruction and gets a list of functions.
This means any bridge information is not accessible to the guest.
>
> Does the s390x use case in your mind concerns with VFIO migraition, or
> replacement of a PT device with backup virtio-ccw path? Or something
> else?
Migration with vfio is the case most likely to be relevant. I'm mostly
concerned with not needlessly closing doors, though.
>
> As the assumption of SR-IOV migration is that, hotplug is used as an
> inidicator for datapath switch - which maps to moving MAC address or
> VLAN filter around between PV and VF. I am not sure how that maps to
> s390x and zPCI with regard to host coordination.
If we can move MAC addresses or VLAN filters on Linux/QEMU/libvirt in
general, there's no inherent reason why we shouldn't be able to do so
on s390 as well. What matters more is probably which pci network cards
are supported (currently Mellanox AFAIK, not sure if there are others).
>
> -Siwei
>
> > - It is too focused on a narrow use case. How is it supposed to be
> > extended?
> >
> > What I would prefer:
> > - Implement a pairing id support that does not rely on a certain
> > transport, but leverages virtio (which is in the game anyway). We'd
> > get at least the "virtio-net device paired with vfio" use case, which
> > is what is currently implemented in the Linux kernel.
> > - Think about a more generic way to relay configuration metadata to the
> > host.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org
> > For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org
> >
next prev parent reply other threads:[~2018-07-04 12:15 UTC|newest]
Thread overview: 49+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-06-29 22:19 [Qemu-devel] [PATCH v3 0/3] Use of unique identifier for pairing virtio and passthrough devices Venu Busireddy
2018-06-29 22:19 ` [Qemu-devel] [PATCH v3 1/3] Add "Group Identifier" support to virtio devices Venu Busireddy
2018-06-29 22:19 ` [Qemu-devel] [PATCH v3 2/3] Add "Group Identifier" support to Red Hat PCI bridge Venu Busireddy
2018-07-03 3:13 ` [Qemu-devel] [virtio-dev] " Siwei Liu
2018-06-29 22:19 ` [Qemu-devel] [PATCH v3 3/3] Add "Group Identifier" support to Red Hat PCI Express bridge Venu Busireddy
2018-07-07 12:14 ` [Qemu-devel] [virtio-dev] " Marcel Apfelbaum
2018-07-31 15:58 ` Venu Busireddy
2018-07-31 16:03 ` Michael S. Tsirkin
2018-07-31 19:11 ` Marcel Apfelbaum
2018-06-29 22:19 ` [Qemu-devel] [PATCH v3 virtio 1/1] Add "Group Identifier" to virtio PCI capabilities Venu Busireddy
2018-07-02 16:14 ` [Qemu-devel] [PATCH v3 0/3] Use of unique identifier for pairing virtio and passthrough devices Roman Kagan
2018-07-02 21:14 ` si-wei liu
2018-07-03 9:58 ` Roman Kagan
2018-07-03 14:28 ` Venu Busireddy
2018-07-03 14:52 ` [Qemu-devel] [virtio-dev] " Cornelia Huck
2018-07-03 23:31 ` Siwei Liu
2018-07-04 12:15 ` Cornelia Huck [this message]
2018-07-06 0:49 ` Siwei Liu
2018-07-06 13:54 ` Cornelia Huck
2018-07-06 15:07 ` Michael S. Tsirkin
2018-07-09 16:20 ` Cornelia Huck
2018-07-06 23:37 ` Siwei Liu
2018-07-09 16:27 ` Cornelia Huck
2018-07-09 13:14 ` Roman Kagan
2018-07-09 16:10 ` Cornelia Huck
2018-07-03 15:34 ` [Qemu-devel] " Roman Kagan
2018-07-03 22:27 ` si-wei liu
2018-07-09 13:00 ` Roman Kagan
2018-07-09 18:35 ` Michael S. Tsirkin
2018-07-10 1:11 ` si-wei liu
2018-07-10 1:54 ` Michael S. Tsirkin
2018-07-11 0:07 ` [Qemu-devel] [virtio-dev] " Siwei Liu
2018-07-11 9:53 ` Cornelia Huck
2018-07-12 9:37 ` Siwei Liu
2018-07-12 11:31 ` Cornelia Huck
2018-07-12 20:52 ` Siwei Liu
2018-07-12 21:00 ` Michael S. Tsirkin
2018-07-12 22:19 ` Siwei Liu
2018-07-13 1:20 ` Samudrala, Sridhar
2018-07-13 3:28 ` Michael S. Tsirkin
2018-07-13 9:15 ` Cornelia Huck
2018-07-12 19:18 ` Michael S. Tsirkin
2018-07-10 1:58 ` [Qemu-devel] " Michael S. Tsirkin
2018-07-10 18:56 ` [Qemu-devel] [virtio-dev] " Siwei Liu
2018-07-10 2:05 ` [Qemu-devel] " Michael S. Tsirkin
2018-07-04 5:43 ` Michael S. Tsirkin
2018-07-10 2:11 ` Michael S. Tsirkin
2018-07-10 14:28 ` Venu Busireddy
2018-07-12 21:01 ` 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=20180704141523.377cb66d.cohuck@redhat.com \
--to=cohuck@redhat.com \
--cc=loseweigh@gmail.com \
--cc=marcel@redhat.com \
--cc=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=rkagan@virtuozzo.com \
--cc=si-wei.liu@oracle.com \
--cc=venu.busireddy@oracle.com \
--cc=virtio-dev@lists.oasis-open.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).