qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: "Marc-André Lureau" <marcandre.lureau@gmail.com>
Cc: "Wang, Wei W" <wei.w.wang@intel.com>,
	Stefan Hajnoczi <stefanha@redhat.com>,
	"pbonzini@redhat.com" <pbonzini@redhat.com>,
	"mst@redhat.com" <mst@redhat.com>,
	"qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
	"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
	"virtio-comment@lists.oasis-open.org"
	<virtio-comment@lists.oasis-open.org>
Subject: Re: [Qemu-devel] [virtio-comment] [PATCH] *** Vhost-pci RFC v2 ***
Date: Tue, 6 Sep 2016 13:16:53 -0400	[thread overview]
Message-ID: <20160906171653.GA12628@stefanha-x1.localdomain> (raw)
In-Reply-To: <CAJ+F1CLSUxtNN3jFNLTH4Zk7-6AqhHvx-DWTb4QjnU39YBOVHw@mail.gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1528 bytes --]

On Mon, Sep 05, 2016 at 08:56:14AM +0000, Marc-André Lureau wrote:
> Hi
> 
> On Sat, Sep 3, 2016 at 5:36 PM Wang, Wei W <wei.w.wang@intel.com> wrote:
> 
> > Marc-André and I just got different thoughts about a design direction. I
> > prefer to have all the frontend virtio devices (net, scsi, console etc.)
> > from the same VM to be supported by one backend vhost-pci device (N-1),
> > while Marc-André prefers to have each frontend virtio device be supported
> > by a backend vhost-pci device (N-N).
> >
> 
> I suggested 1-1 (not n-n, but you can have several 1-1 pairs), unless you
> have a good reason to do differently, starting from the use case (is there
> a case that requires several backends/consumers in the same VM? if yes, 1-1
> design could still fit). If it's to save guest memory space, it may not be
> a good enough reason, but I don't see clearly the implications.

N-1 saves address space but is probably a poor fit for modern PCI
devices that are geared towards IOMMUs.

Each virtio device should be isolated in terms of memory space and
hotplug/reset life cycle.  This ensures they are robust against driver
bugs and can be safely delegated/passed through to different
applications or nested VMs that don't trust each other.

Isolation between virtio device instances sharing a single vhost-pci
device (N-1) will harder to achieve.  I would aim for the simpler 1-1
design instead where each device is isolated.

Are there specific reasons for wanting an N-1 design?

Stefan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2016-09-06 17:17 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-19 14:14 [Qemu-devel] [PATCH] *** Vhost-pci RFC v2 *** Wei Wang
2016-06-19 14:14 ` [Qemu-devel] [PATCH] Vhost-pci RFC v2: a new virtio device for inter-VM communication Wei Wang
2016-08-29 15:27   ` Stefan Hajnoczi
2016-06-27  2:01 ` [Qemu-devel] [virtio-comment] [PATCH] *** Vhost-pci RFC v2 *** Wang, Wei W
2016-08-29 15:24   ` Stefan Hajnoczi
2016-08-29 15:42     ` Michael S. Tsirkin
2016-08-30 10:08     ` Wang, Wei W
2016-08-30 11:10       ` Michael S. Tsirkin
2016-08-30 12:59         ` Wang, Wei W
2016-08-31 16:07       ` Stefan Hajnoczi
2016-09-01 16:27         ` Wei Wang
2016-09-02 13:26           ` Stefan Hajnoczi
2016-09-03 13:36             ` Wang, Wei W
2016-09-05  8:56               ` Marc-André Lureau
2016-09-06 17:16                 ` Stefan Hajnoczi [this message]
2016-09-07 12:27                   ` Wang, Wei W
2016-08-29 15:41   ` Michael S. Tsirkin
2016-08-30 10:07     ` Wang, Wei W
2016-08-31 12:30 ` [Qemu-devel] " Marc-André Lureau
2016-09-01 16:26   ` Wei Wang
2016-09-01  8:49     ` Marc-André Lureau
2016-09-01 12:13       ` [Qemu-devel] [virtio-comment] " Wei Wang
2016-09-01 13:05         ` Marc-André Lureau
2016-09-02  1:29           ` Wei Wang
2016-09-02  8:15             ` Marc-André Lureau

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=20160906171653.GA12628@stefanha-x1.localdomain \
    --to=stefanha@gmail.com \
    --cc=kvm@vger.kernel.org \
    --cc=marcandre.lureau@gmail.com \
    --cc=mst@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@redhat.com \
    --cc=virtio-comment@lists.oasis-open.org \
    --cc=wei.w.wang@intel.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).