PCI: add SIOV and IMS capability detection
Quoted 9 lines · Thomas Gleixner
Quoted 3 lines · Ashok Raj
On Sun, Nov 08, 2020 at 07:47:24PM +0100, Thomas Gleixner wrote:
But for SIOV devices there is no PASID filtering at the remap level since interrupt messages don't carry PASID in the TLP.Why do we need PASID for VMM integrity?
If the device sends a message then the remap unit will see the requester ID of the device and if the message it sends is not
That made me look at patch 4/17 which adds DEVMSI support to the remap code:
Review
Quoted 3 lines
(quoted diff) +2
-0+ case X86_IRQ_ALLOC_TYPE_DEV_MSI: + irte_prepare_msg(msg, index, sub_handle); break;
It does not setup any requester-id filter in IRTE. How is that supposed to be correct?
Thanks,
tglx
Quoted 14 lines · Thomas Gleixner
Quoted 9 lines · Thomas Gleixner
Quoted 3 lines · Ashok Raj
On Sun, Nov 08, 2020 at 07:47:24PM +0100, Thomas Gleixner wrote:
But for SIOV devices there is no PASID filtering at the remap level since interrupt messages don't carry PASID in the TLP.Why do we need PASID for VMM integrity?
If the device sends a message then the remap unit will see the requester ID of the device and if the message it sends is not
That made me look at patch 4/17 which adds DEVMSI support to the remap code:
Quoted 7 lines
Review
Quoted 3 lines
(quoted diff) +2
-0+ case X86_IRQ_ALLOC_TYPE_DEV_MSI: + irte_prepare_msg(msg, index, sub_handle); break;It does not setup any requester-id filter in IRTE. How is that supposed to be correct?
Its missing a set_msi_sid() equivalent for the DEV_MSI type.