RE: [RFC 5/7] iommufd/selftest: Extend IOMMU_TEST_OP_MOCK_DOMAIN to pass in pasid

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> From: Liu, Yi L <yi.l.liu@xxxxxxxxx>
> Sent: Monday, October 9, 2023 4:51 PM
> 
> This extends IOMMU_TEST_OP_MOCK_DOMAIN to accept a pasid from caller.
> Hence it is able to cover the iommufd_device_bind_pasid() for SIOV
> virtual devices. pasid #0 is selected to mark the physical devices,
> non-zero pasid values would be considered as SIOV virtual device bind.
> Will add SIOV test cases later.
> 
...
> @@ -62,6 +62,8 @@ struct iommu_test_cmd {
>  			__aligned_u64 length;
>  		} add_reserved;
>  		struct {
> +			/* #0 is invalid, any non-zero is meaningful */
> +			__u32 default_pasid;

#0 represents the physical device instead of being invalid.




[Index of Archives]     [Linux Wireless]     [Linux Kernel]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]

  Powered by Linux