Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-07 Thread Alex Williamson
>> > <alexander.h.du...@intel.com> > >> > Cc: Wang, Liang-min <liang-min.w...@intel.com>; > >> > alex.william...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, > >> > Jeffrey T > >> > <jeffrey.t.kirs...@intel.com>; k...@vg

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-07 Thread Alex Williamson
l.org; Kirsher, > >> > Jeffrey T > >> > ; k...@vger.kernel.org; bhelg...@google.com; > >> > linux-...@vger.kernel.org > >> > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > >> > > >> > On Sat, 2017-10-28 at 2

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Alexander Duyck
liam...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, Jeffrey >> > T >> > <jeffrey.t.kirs...@intel.com>; k...@vger.kernel.org; bhelg...@google.com; >> > linux-...@vger.kernel.org >> > Subject: Re: [PATCH] Enable SR-IOV instantiation through

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Alexander Duyck
017 8:39 AM >> > To: Christoph Hellwig ; Duyck, Alexander H >> > >> > Cc: Wang, Liang-min ; >> > alex.william...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, Jeffrey >> > T >> > ; k...@vger.kernel.org; bhelg...@google.com; >> > linux

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Alex Williamson
<h...@infradead.org>; Duyck, Alexander H > > <alexander.h.du...@intel.com> > > Cc: Wang, Liang-min <liang-min.w...@intel.com>; > > alex.william...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, Jeffrey T > > <jeffrey.t.kirs...@intel.com>; k...@vger.kernel.org; b

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Alex Williamson
t; > Cc: Wang, Liang-min ; > > alex.william...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, Jeffrey T > > ; k...@vger.kernel.org; bhelg...@google.com; > > linux-...@vger.kernel.org > > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > > > On Sat

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 01:04:26PM -0700, Jeff Kirsher wrote: > From: Liang-Min Wang > > When a SR-IOV supported device is bound with vfio-pci, the driver > could not create SR-IOV instance through /sys/bus/pci/devices/... > /sriov_numvfs. This patch re-activates this

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-11-06 Thread Bjorn Helgaas
On Tue, Oct 24, 2017 at 01:04:26PM -0700, Jeff Kirsher wrote: > From: Liang-Min Wang > > When a SR-IOV supported device is bound with vfio-pci, the driver > could not create SR-IOV instance through /sys/bus/pci/devices/... > /sriov_numvfs. This patch re-activates this capability for a PCIe >

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-31 Thread Wang, Liang-min
n.w...@intel.com>; > alex.william...@redhat.com; linux-kernel@vger.kernel.org; Kirsher, Jeffrey T > <jeffrey.t.kirs...@intel.com>; k...@vger.kernel.org; bhelg...@google.com; > linux-...@vger.kernel.org > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > >

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-31 Thread Wang, Liang-min
sher, Jeffrey T > ; k...@vger.kernel.org; bhelg...@google.com; > linux-...@vger.kernel.org > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Sat, 2017-10-28 at 23:16 -0700, Christoph Hellwig wrote: > > On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H w

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-30 Thread David Woodhouse
On Sat, 2017-10-28 at 23:16 -0700, Christoph Hellwig wrote: > On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: > > > > I don't see this so much as a security problem per-se. It all depends > > on the hardware setup. If I recall correctly, there are devices where > > the PF

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-30 Thread David Woodhouse
On Sat, 2017-10-28 at 23:16 -0700, Christoph Hellwig wrote: > On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: > > > > I don't see this so much as a security problem per-se. It all depends > > on the hardware setup. If I recall correctly, there are devices where > > the PF

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-29 Thread Alexander Duyck
On Sat, Oct 28, 2017 at 11:16 PM, Christoph Hellwig wrote: > On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: >> I don't see this so much as a security problem per-se. It all depends >> on the hardware setup. If I recall correctly, there are devices where >>

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-29 Thread Alexander Duyck
On Sat, Oct 28, 2017 at 11:16 PM, Christoph Hellwig wrote: > On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: >> I don't see this so much as a security problem per-se. It all depends >> on the hardware setup. If I recall correctly, there are devices where >> the PF function

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-29 Thread Christoph Hellwig
On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: > I don't see this so much as a security problem per-se. It all depends > on the hardware setup. If I recall correctly, there are devices where > the PF function doesn't really do much other than act as a bit more > heavy-weight

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-29 Thread Christoph Hellwig
On Fri, Oct 27, 2017 at 11:20:41PM +, Duyck, Alexander H wrote: > I don't see this so much as a security problem per-se. It all depends > on the hardware setup. If I recall correctly, there are devices where > the PF function doesn't really do much other than act as a bit more > heavy-weight

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Duyck, Alexander H
l.org; > > > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > > > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > > > > > On Tue, 24 Oct 2017 21:49:15 + > > > "Wang, Liang-min" &l

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Duyck, Alexander H
ber 24, 2017 6:07 PM > > > To: Wang, Liang-min > > > Cc: Kirsher, Jeffrey T ; > > > k...@vger.kernel.org; > > > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > > bhelg...@google.com; Duyck, Alexander H > > > Subject: Re: [PATCH] Enabl

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
nux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Fri, 27 Oct 2017 21:50:43 + > "Wang, Liang-min" <

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
...@google.com; Duyck, Alexander H > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Fri, 27 Oct 2017 21:50:43 + > "Wang, Liang-min" wrote: > > > > -Original Message- > > > From: Alex Williamson [mailto:alex.will

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Alex Williamson
t;liang-min.w...@intel.com> > > Cc: Kirsher, Jeffrey T <jeffrey.t.kirs...@intel.com>; k...@vger.kernel.org; > > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > > Subject: Re: [PATCH

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Alex Williamson
frey T ; k...@vger.kernel.org; > > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelg...@google.com; Duyck, Alexander H > > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > > > On Tue, 24 Oct 2017 21:49:15 + > > "Wang

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
nux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 21:49:15 + > "Wang, Liang-min" <li

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-27 Thread Wang, Liang-min
...@google.com; Duyck, Alexander H > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 21:49:15 + > "Wang, Liang-min" wrote: > > > Just like any PCIe devices that supports SR-IOV. There are restrictions set > > fo

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-25 Thread Alex Williamson
t;liang-min.w...@intel.com> > > Cc: Kirsher, Jeffrey T <jeffrey.t.kirs...@intel.com>; k...@vger.kernel.org; > > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > > Subject: Re: [PATCH

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-25 Thread Alex Williamson
frey T ; k...@vger.kernel.org; > > linux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > > bhelg...@google.com; Duyck, Alexander H > > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > > > On Tue, 24 Oct 2017 21:49:15 + > > "Wang

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Wang, Liang-min
nux-...@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 21:49:15 + > "Wang, Liang-min" <li

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Wang, Liang-min
...@google.com; Duyck, Alexander H > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 21:49:15 + > "Wang, Liang-min" wrote: > > > Just like any PCIe devices that supports SR-IOV. There are restrictions set > > fo

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Alex Williamson
On Tue, 24 Oct 2017 21:49:15 + "Wang, Liang-min" wrote: > Just like any PCIe devices that supports SR-IOV. There are restrictions set > for VF. Also, there is a concept of trust VF now available for PF to manage > certain features that only selected VF could

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Alex Williamson
On Tue, 24 Oct 2017 21:49:15 + "Wang, Liang-min" wrote: > Just like any PCIe devices that supports SR-IOV. There are restrictions set > for VF. Also, there is a concept of trust VF now available for PF to manage > certain features that only selected VF could exercise. Are you saying all

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Wang, Liang-min
@vger.kernel.org; linux-kernel@vger.kernel.org; > bhelg...@google.com; Duyck, Alexander H <alexander.h.du...@intel.com> > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 13:04:26 -0700 > Jeff Kirsher <jeffrey.t.kirs...@intel.com> wro

RE: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Wang, Liang-min
m; Duyck, Alexander H > Subject: Re: [PATCH] Enable SR-IOV instantiation through /sys file > > On Tue, 24 Oct 2017 13:04:26 -0700 > Jeff Kirsher wrote: > > > From: Liang-Min Wang > > > > When a SR-IOV supported device is bound with vfio-pci, the driver > > c

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Alex Williamson
On Tue, 24 Oct 2017 13:04:26 -0700 Jeff Kirsher wrote: > From: Liang-Min Wang > > When a SR-IOV supported device is bound with vfio-pci, the driver > could not create SR-IOV instance through /sys/bus/pci/devices/... > /sriov_numvfs. This

Re: [PATCH] Enable SR-IOV instantiation through /sys file

2017-10-24 Thread Alex Williamson
On Tue, 24 Oct 2017 13:04:26 -0700 Jeff Kirsher wrote: > From: Liang-Min Wang > > When a SR-IOV supported device is bound with vfio-pci, the driver > could not create SR-IOV instance through /sys/bus/pci/devices/... > /sriov_numvfs. This patch re-activates this capability for a PCIe > device