Single SAS Port Passthrough (Dual Port HBA)

mhert

Renowned Member
Jul 5, 2017
101
3
83
45
Hello Guys.

Is it possible to passthroug the ports of a dual sas hba to two different vm's?

Code:
root@prox11:~# lspci -s 19:00.0 -v
19:00.0 Serial Attached SCSI controller: Broadcom / LSI SAS3008 PCI-Express Fusion-MPT SAS-3 (rev 02)
        Subsystem: Broadcom / LSI SAS9300-8e
        Flags: bus master, fast devsel, latency 0, IRQ 36, NUMA node 0, IOMMU group 8
        I/O ports at 5000 [disabled] [size=256]
        Memory at aae40000 (64-bit, non-prefetchable) [size=64K]
        Memory at aae00000 (64-bit, non-prefetchable) [size=256K]
        Expansion ROM at aad00000 [disabled] [size=1M]
        Capabilities: [50] Power Management version 3
        Capabilities: [68] Express Endpoint, MSI 00
        Capabilities: [a8] MSI: Enable- Count=1/1 Maskable+ 64bit+
        Capabilities: [c0] MSI-X: Enable+ Count=96 Masked-
        Capabilities: [100] Advanced Error Reporting
        Capabilities: [1e0] Secondary PCI Express
        Capabilities: [1c0] Power Budgeting <?>
        Capabilities: [190] Dynamic Power Allocation <?>
        Capabilities: [148] Alternative Routing-ID Interpretation (ARI)
        Kernel driver in use: vfio-pci
        Kernel modules: mpt3sas
 
do they report as different pci devices? if yes, are they in different iommu groups? if no to any of those questions, the i fear it's not possible.
you can "passthrough" the individual disks though, it's not as elegant, and you don't get direct access to the hw in the guest (so no smart, etc.) but should perform ok
 
thank you for reply.

there is only one device reported (19:00.0) but as i saw meanwhile it's an eight-port-controller (with two external connectors).

i want to attach an dual-partition tape library connected to the server with two sas-cables to two different vm's (no disks).
 
thats in fact the status quo.

i have already passed the whole controller to a vm in my current setup.

but after partitioning (2) of the tape libray i want to pass each partition to a different vm...
 
I'm aiming for the same thing. Only difference is, I want to use the LSI 9207-4i4e which has one internal SFF-8087 and one external SFF-8088.
The controller is in shipping right now.

My hope is, that it might show up as two PCIe devices in two IOMMU groups.
 
For the sake of completeness:

I wasn't able to passthrough the hba mentioned above to 2 different vm's.

I solved it by attaching another hba (HP) which was laying around to the host ;-)
 
Thanks for the feedback.
My hope hasn't died yet. Maybe because one connector of the LSI 9207-4i4e is extern and one is internal it might be different....
 
I have that controller, it is just an 8 port chip where 4 ports are wired to the outside and 4 to the inside as a pure cabling thing.
 
what is the cause if one card is in multiple immo groups and another only in one?

proxmox / board bios/efi / driver ?
 
Idk if I understand your question completely. :oops:

My goal / aim is - I've got two VMs:
  • one should get a disk shelf attached to it and
  • one should get a SAS LTO drive attached to it.
My idea was, I could solve this with having only the LSI 9207-4i4e - passing through the one port to the first VM and the other port to the second VM. I guess that won't work.

I now ordered another SAS controller.