mirror of https://github.com/torvalds/linux.git
vfio: selftests: Add vfio_type1v2_mode
Add a new IOMMU mode for using VFIO_TYPE1v2_IOMMU. Acked-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20250822212518.4156428-27-dmatlack@google.com Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
This commit is contained in:
parent
892aff147a
commit
0969c685ba
|
|
@ -59,7 +59,8 @@ struct vfio_iommu_mode {
|
|||
* which should then use FIXTURE_VARIANT_ADD() to create the variant.
|
||||
*/
|
||||
#define FIXTURE_VARIANT_ADD_ALL_IOMMU_MODES(...) \
|
||||
FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1_iommu, ##__VA_ARGS__)
|
||||
FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1_iommu, ##__VA_ARGS__); \
|
||||
FIXTURE_VARIANT_ADD_IOMMU_MODE(vfio_type1v2_iommu, ##__VA_ARGS__)
|
||||
|
||||
struct vfio_pci_bar {
|
||||
struct vfio_region_info info;
|
||||
|
|
|
|||
|
|
@ -371,6 +371,11 @@ static const struct vfio_iommu_mode iommu_modes[] = {
|
|||
.container_path = "/dev/vfio/vfio",
|
||||
.iommu_type = VFIO_TYPE1_IOMMU,
|
||||
},
|
||||
{
|
||||
.name = "vfio_type1v2_iommu",
|
||||
.container_path = "/dev/vfio/vfio",
|
||||
.iommu_type = VFIO_TYPE1v2_IOMMU,
|
||||
},
|
||||
};
|
||||
|
||||
const char *default_iommu_mode = "vfio_type1_iommu";
|
||||
|
|
|
|||
Loading…
Reference in New Issue