From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: virtio-dev-return-4879-cohuck=redhat.com@lists.oasis-open.org Sender: List-Post: List-Help: List-Unsubscribe: List-Subscribe: Received: from lists.oasis-open.org (oasis-open.org [10.110.1.242]) by lists.oasis-open.org (Postfix) with ESMTP id 23CF4985DB8 for ; Thu, 27 Sep 2018 23:45:56 +0000 (UTC) Date: Thu, 27 Sep 2018 19:45:53 -0400 From: "Michael S. Tsirkin" Message-ID: <20180927194516-mutt-send-email-mst@kernel.org> References: <20180918151337.GA7432@vbusired-dt> <20180918111540-mutt-send-email-mst@kernel.org> <20180919230502-mutt-send-email-mst@kernel.org> <20180920220951-mutt-send-email-mst@kernel.org> <20180927121621-mutt-send-email-mst@kernel.org> <2f6490b7-258a-328c-4ef8-b95d8438264f@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2f6490b7-258a-328c-4ef8-b95d8438264f@intel.com> Subject: Re: [virtio-dev] [PATCH v4] content: Introduce VIRTIO_NET_F_STANDBY feature To: "Samudrala, Sridhar" Cc: Sameeh Jubran , loseweigh@gmail.com, venu.busireddy@oracle.com, cohuck@redhat.com, virtio-dev List-ID: On Thu, Sep 27, 2018 at 10:23:17AM -0700, Samudrala, Sridhar wrote: > > On 9/27/2018 9:17 AM, Michael S. Tsirkin wrote: > > On Thu, Sep 27, 2018 at 10:17:37AM +0300, Sameeh Jubran wrote: > > > What do you think about the following alternative implementation which > > > uses cross id validation. > > > > > > -device virtio-net,standby=,id= > > > -vfio #address,id=,primary= > > virtio is a standby device, isn't it? > > > > Besides that I don't see issues with this API. > > Yes. I think 'standby' and 'primary' are reversed in the above suggestion. This should work. > > -device virtio-net,primary=,id= > -vfio #address,id=,standby= > > It should be OK to have virtio-net in standby mode without an associated vfio primary device, > but a vfio primary device should not allowed without a virtio-net standby device. > > Will it be possible to remove vfio device when virtio_net driver is unloaded in the VM? > > Thanks > Sridhar > > We can request removal, yes. -- MST --------------------------------------------------------------------- To unsubscribe, e-mail: virtio-dev-unsubscribe@lists.oasis-open.org For additional commands, e-mail: virtio-dev-help@lists.oasis-open.org