From: Alex Williamson <alex.williamson@redhat.com>
To: "Tian, Kevin" <kevin.tian@intel.com>
Cc: Alexander Duyck <alexander.duyck@gmail.com>,
Bjorn Helgaas <bhelgaas@google.com>,
"linux-pci@vger.kernel.org" <linux-pci@vger.kernel.org>,
"Duyck, Alexander H" <alexander.h.duyck@intel.com>,
"virtio-dev@lists.oasis-open.org"
<virtio-dev@lists.oasis-open.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
Netdev <netdev@vger.kernel.org>, "Daly, Dan" <dan.daly@intel.com>,
LKML <linux-kernel@vger.kernel.org>,
Maximilian Heyne <mheyne@amazon.de>,
"Wang, Liang-min" <liang-min.wang@intel.com>,
"Rustad, Mark D" <mark.d.rustad@intel.com>,
David Woodhouse <dwmw2@infradead.org>,
"dwmw@amazon.co.uk" <dwmw@amazon.co.uk>,
Ilya Lesokhin <ilyal@mellanox.com>,
Don Dutile <ddutile@redhat.com>,
Kirti Wankhede <kwankhede@nvidia.com>
Subject: Re: [PATCH] pci-iov: Add support for unmanaged SR-IOV
Date: Fri, 2 Mar 2018 11:14:11 -0700 [thread overview]
Message-ID: <20180302111411.47a58371@t450s.home> (raw)
In-Reply-To: <AADFC41AFE54684AB9EE6CBC0274A5D1910253B9@SHSMSX101.ccr.corp.intel.com>
On Fri, 2 Mar 2018 06:54:17 +0000
"Tian, Kevin" <kevin.tian@intel.com> wrote:
> > From: Alex Williamson
> > Sent: Friday, March 2, 2018 4:22 AM
> > >
> > > I am pretty sure that you are describing is true of some, but not for
> > > all. I think the Amazon solutions and the virtio solution are doing
> > > hard partitioning of the part. I will leave it to those guys to speak
> > > for themselves since I don't know anything about the hardware design
> > > of those parts.
> >
> > I think we'd need device specific knowledge and enablement to be able
> > to take advantage of any hardware partitioning, otherwise we need to
> > assume the pf is privileged, as implemented in other sriov devices.
> >
> > I'm also trying to imagine whether there's a solution via the new
> > vfio/mdev interface, where the mdev vendor driver would bind to the pf
> > and effectively present itself as the mdev device. The vendor driver
> > could provide sriov capabilities and bear the burden of ensuring that
> > the pf is used cooperatively. The only existing mdev vendor drivers are
> > vGPUs and rely on on-device DMA translation and isolation, such as
> > through GTTs, but there have been some thoughts on providing IOMMU
> > based
> > isolation of mdev/sriov mixed devices (assuming DMA is even required
> > for userspace management of the pf in this use case). [Cc Kirti]
> > Thanks,
> >
>
> Hope not distracting this thread, but above sounds like an interesting
> idea. Actually we ever brainstormed similar thought for another
> potential usage - supporting VF live migration. We are already working
> on an generic extension to allow state save/restore of mdev instance.
> If vendor driver could further wrap pf as a mdev instance, it could
> leverage the same framework for a clean state migration on VF. based
> on mmap callback the vendor driver can easily switch back-and-forth
> between pass through and trap/emulation of the VF resources. Of
> course doing so alone doesn't address all the demands of VF live
> migration (e.g. dirty page tracking still requires other techniques),
> but it does pave a way toward a general framework to support VF
> live migration.
>
> If above is feasible, finally we could use one mdev framework to
> manage both mdev and pf/vf assignment, while providing added
> values which are difficult to achieve today. :-)
mdev drivers may be the first to support migration, but I wonder if a
full mdev implementation is necessary for it. Once the vfio api is
define, device specific extensions to vfio-pci might be able to
implement migration more directly. Thanks,
Alex
next prev parent reply other threads:[~2018-03-02 18:14 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-02-27 19:06 [PATCH] pci-iov: Add support for unmanaged SR-IOV Alexander Duyck
2018-02-27 21:40 ` Alex Williamson
2018-02-27 22:25 ` Alexander Duyck
2018-02-28 17:49 ` Alexander Duyck
2018-02-28 22:45 ` Gregory Rose
2018-02-28 22:59 ` Alex Williamson
2018-03-01 0:36 ` Alexander Duyck
2018-03-01 20:22 ` Alex Williamson
2018-03-01 22:42 ` Alexander Duyck
2018-03-01 23:58 ` Alex Williamson
2018-03-02 2:49 ` Alexander Duyck
2018-03-02 17:52 ` Alex Williamson
2018-03-02 6:54 ` Tian, Kevin
2018-03-02 18:14 ` Alex Williamson [this message]
2018-03-03 0:59 ` Tian, Kevin
[not found] ` <AADFC41AFE54684AB9EE6CBC0274A5D1910253BF@SHSMSX101.ccr.corp.intel.com>
2018-03-02 6:55 ` Tian, Kevin
2018-03-05 20:57 ` Don Dutile
2018-03-05 21:41 ` Alexander Duyck
2018-03-06 20:19 ` Don Dutile
2018-03-07 0:40 ` Alexander Duyck
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=20180302111411.47a58371@t450s.home \
--to=alex.williamson@redhat.com \
--cc=alexander.duyck@gmail.com \
--cc=alexander.h.duyck@intel.com \
--cc=bhelgaas@google.com \
--cc=dan.daly@intel.com \
--cc=ddutile@redhat.com \
--cc=dwmw2@infradead.org \
--cc=dwmw@amazon.co.uk \
--cc=ilyal@mellanox.com \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=kwankhede@nvidia.com \
--cc=liang-min.wang@intel.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-pci@vger.kernel.org \
--cc=mark.d.rustad@intel.com \
--cc=mheyne@amazon.de \
--cc=netdev@vger.kernel.org \
--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).