Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread R0b0t1
On Thu, Mar 8, 2018 at 6:07 PM, taii...@gmx.com  wrote:
> Again please I know how to assign devices and my board has excellent IOMMU
> groups that is not the issue - I want to know how to create the SR-IOV
> virtual functions and assign drives to them to use the same controller on
> more than one VM concurrently.

I see, sorry. This I can not find. What I can find is SR-IOV
documentation for network devices, but nothing for storage or graphics
devices.

It looks like the details are still unrecovered.



Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread taii...@gmx.com

On 03/08/2018 06:55 PM, R0b0t1 wrote:


https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
https://wiki.installgentoo.com/index.php/PCI_passthrough
https://www.kernel.org/doc/Documentation/vfio.txt

The one sticking point is that you need to figure out the layout of
your PCIe lanes to share multiple devices without conflicts.

Cheers,
  R0b0t1

No not cheers :< that is not what I am asking for.

Again please I know how to assign devices and my board has excellent 
IOMMU groups that is not the issue - I want to know how to create the 
SR-IOV virtual functions and assign drives to them to use the same 
controller on more than one VM concurrently.




Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread R0b0t1
On Thu, Mar 8, 2018 at 4:14 PM, taii...@gmx.com  wrote:
> On 03/07/2018 09:02 PM, R0b0t1 wrote:
>
>> On Wed, Mar 7, 2018 at 7:52 PM, taii...@gmx.com  wrote:
>>>
>>> I bought a LSI-9211-8i / SAS 2008 controller which reports support for
>>> SR-IOV in lspci and I am wondering how I can use it.
>>>
>>> There is no info on the internet about this not even for their newer
>>> controllers where there is a lot of advertising about SR-IOV.
>>>
>>> The idea is that you can assign a RAID array, individual hard drive, etc
>>> to
>>> a VF which is then assigned to a VM via IOMMU providing better almost
>>> native
>>> performance vs emulated disks.
>>>
>>> Thanks!
>>
>> If it supports SR-IOV you can pass it to a guest with VFIO. If it did
>> not support SR-IOV it would not support VFIO.
>
> I know - my question is how do I create the virtual functions and assign the
> drives to them instead of simply attaching the entire controller?
>
> According to LSI's press release you could have for instance 5 different
> RAID's assigned to 5 different VM's via virtual functions - not simply all
> of them assign to one VM via assigning the controller like a non SR-IOV
> device
>

https://wiki.archlinux.org/index.php/PCI_passthrough_via_OVMF
https://wiki.installgentoo.com/index.php/PCI_passthrough
https://www.kernel.org/doc/Documentation/vfio.txt

The one sticking point is that you need to figure out the layout of
your PCIe lanes to share multiple devices without conflicts.

Cheers,
 R0b0t1



Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-08 Thread taii...@gmx.com

On 03/07/2018 09:02 PM, R0b0t1 wrote:


On Wed, Mar 7, 2018 at 7:52 PM, taii...@gmx.com  wrote:

I bought a LSI-9211-8i / SAS 2008 controller which reports support for
SR-IOV in lspci and I am wondering how I can use it.

There is no info on the internet about this not even for their newer
controllers where there is a lot of advertising about SR-IOV.

The idea is that you can assign a RAID array, individual hard drive, etc to
a VF which is then assigned to a VM via IOMMU providing better almost native
performance vs emulated disks.

Thanks!

If it supports SR-IOV you can pass it to a guest with VFIO. If it did
not support SR-IOV it would not support VFIO.
I know - my question is how do I create the virtual functions and assign 
the drives to them instead of simply attaching the entire controller?


According to LSI's press release you could have for instance 5 different 
RAID's assigned to 5 different VM's via virtual functions - not simply 
all of them assign to one VM via assigning the controller like a non 
SR-IOV device




Re: [gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-07 Thread R0b0t1
On Wed, Mar 7, 2018 at 7:52 PM, taii...@gmx.com  wrote:
> I bought a LSI-9211-8i / SAS 2008 controller which reports support for
> SR-IOV in lspci and I am wondering how I can use it.
>
> There is no info on the internet about this not even for their newer
> controllers where there is a lot of advertising about SR-IOV.
>
> The idea is that you can assign a RAID array, individual hard drive, etc to
> a VF which is then assigned to a VM via IOMMU providing better almost native
> performance vs emulated disks.
>
> Thanks!
>

If it supports SR-IOV you can pass it to a guest with VFIO. If it did
not support SR-IOV it would not support VFIO.

Cheers,
 R0b0t1



[gentoo-user] How to use SR-IOV on a LSI RAID controller

2018-03-07 Thread taii...@gmx.com
I bought a LSI-9211-8i / SAS 2008 controller which reports support for 
SR-IOV in lspci and I am wondering how I can use it.


There is no info on the internet about this not even for their newer 
controllers where there is a lot of advertising about SR-IOV.


The idea is that you can assign a RAID array, individual hard drive, etc 
to a VF which is then assigned to a VM via IOMMU providing better almost 
native performance vs emulated disks.


Thanks!