RE: [PATCH v2 1/4] iommu/vt-d: Block force-snoop domain attaching if no SC support

2022-05-05 Thread Tian, Kevin
> From: Lu Baolu > Sent: Thursday, May 5, 2022 9:07 AM > > In the attach_dev callback of the default domain ops, if the domain has > been set force_snooping, but the iommu hardware of the device does not > support SC(Snoop Control) capability, the callback should block it and > return a

[PATCH v2 1/4] iommu/vt-d: Block force-snoop domain attaching if no SC support

2022-05-04 Thread Lu Baolu
In the attach_dev callback of the default domain ops, if the domain has been set force_snooping, but the iommu hardware of the device does not support SC(Snoop Control) capability, the callback should block it and return a corresponding error code. Signed-off-by: Lu Baolu Reviewed-by: Jason