iommu: Move default domain allocation to separate function