lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <685ec543-56d0-7a9c-4a15-3072746c2f91@arm.com>
Date:   Thu, 15 Jun 2023 10:39:06 +0100
From:   Robin Murphy <robin.murphy@....com>
To:     Anvesh Jain P <quic_ajainp@...cinc.com>,
        Joerg Roedel <joro@...tes.org>, Will Deacon <will@...nel.org>
Cc:     iommu@...ts.linux.dev, linux-kernel@...r.kernel.org,
        Venkata Rao Kakani <quic_vkakani@...cinc.com>,
        Vagdhan Kumar <quic_vagdhank@...cinc.com>
Subject: Re: [PATCH] iommu: export iommu_set_default_translated function

On 2023-06-15 10:33, Anvesh Jain P wrote:
> export iommu_set_default_translated function to be used by other modules.

Which modules? The only reason these functions are public at all is to 
support the legacy x86 command-line options. No *new* code outside the 
core API should have any reason to be messing with core API policy. If 
an IOMMU driver needs to special-case particular devices we have 
.def_domain_type for that.

Thanks,
Robin.

> Signed-off-by: Anvesh Jain P <quic_ajainp@...cinc.com>
> Signed-off-by: Venkata Rao Kakani <quic_vkakani@...cinc.com>
> Signed-off-by: Vagdhan Kumar <quic_vagdhank@...cinc.com>
> ---
>   drivers/iommu/iommu.c | 1 +
>   1 file changed, 1 insertion(+)
> 
> diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c
> index f1dcfa3f1a1b..1b4a5db58d66 100644
> --- a/drivers/iommu/iommu.c
> +++ b/drivers/iommu/iommu.c
> @@ -2730,6 +2730,7 @@ void iommu_set_default_translated(bool cmd_line)
>   		iommu_cmd_line |= IOMMU_CMD_LINE_DMA_API;
>   	iommu_def_domain_type = IOMMU_DOMAIN_DMA;
>   }
> +EXPORT_SYMBOL_GPL(iommu_set_default_translated);
>   
>   bool iommu_default_passthrough(void)
>   {
> 
> base-commit: b6dad5178ceaf23f369c3711062ce1f2afc33644

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ