diff options
| author | Jason Gunthorpe <[email protected]> | 2025-01-10 16:35:05 +0000 |
|---|---|---|
| committer | Joerg Roedel <[email protected]> | 2025-01-17 07:59:32 +0000 |
| commit | 082f1bcae8d1b5f76e92e369091176b8d61120ec (patch) | |
| tree | b664c9f68ffd69984dfd5dbfc49596b3dca093ac /net/switchdev/switchdev.c | |
| parent | iommu/amd: Move the nid to pdom_setup_pgtable() (diff) | |
| download | kernel-082f1bcae8d1b5f76e92e369091176b8d61120ec.tar.gz kernel-082f1bcae8d1b5f76e92e369091176b8d61120ec.zip | |
iommu/amd: Fully decode all combinations of alloc_paging_flags
Currently AMD does not support
IOMMU_HWPT_ALLOC_PASID | IOMMU_HWPT_ALLOC_DIRTY_TRACKING
It should be rejected. Instead it creates a V1 domain without dirty
tracking support.
Use a switch to fully decode the flags.
Fixes: ce2cd175469f ("iommu/amd: Enhance amd_iommu_domain_alloc_user()")
Reviewed-by: Vasant Hegde <[email protected]>
Signed-off-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
