[PATCH v2] accel/tcg: Restrict IOMMU declarations

Philippe Mathieu-Daudé posted 1 patch 1 month, 1 week ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20260616152842.92275-1-philmd@oss.qualcomm.com
Maintainers: Richard Henderson <richard.henderson@linaro.org>, Paolo Bonzini <pbonzini@redhat.com>
There is a newer version of this series
include/accel/tcg/iommu.h | 4 ++++
1 file changed, 4 insertions(+)
[PATCH v2] accel/tcg: Restrict IOMMU declarations
Posted by Philippe Mathieu-Daudé 1 month, 1 week ago
Move the two TCG-specific IOMMU method declarations from the
generic "exec/cpu-common.h" header to "accel/tcg/iommu.h".

Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
---
 include/accel/tcg/iommu.h | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/include/accel/tcg/iommu.h b/include/accel/tcg/iommu.h
index 2b6d0ff7282..a4032a292e5 100644
--- a/include/accel/tcg/iommu.h
+++ b/include/accel/tcg/iommu.h
@@ -7,6 +7,10 @@
 #ifndef ACCEL_TCG_IOMMU_H
 #define ACCEL_TCG_IOMMU_H
 
+#ifndef CONFIG_TCG
+#error Can only include this header with TCG
+#endif
+
 #ifdef CONFIG_USER_ONLY
 #error Cannot include accel/tcg/iommu.h from user emulation
 #endif
-- 
2.53.0


Re: [PATCH v2] accel/tcg: Restrict IOMMU declarations
Posted by Philippe Mathieu-Daudé 1 month, 1 week ago
On 16/6/26 17:28, Philippe Mathieu-Daudé wrote:
> Move the two TCG-specific IOMMU method declarations from the
> generic "exec/cpu-common.h" header to "accel/tcg/iommu.h".
> 
> Signed-off-by: Philippe Mathieu-Daudé <philmd@oss.qualcomm.com>
> ---
>   include/accel/tcg/iommu.h | 4 ++++
>   1 file changed, 4 insertions(+)
> 
> diff --git a/include/accel/tcg/iommu.h b/include/accel/tcg/iommu.h
> index 2b6d0ff7282..a4032a292e5 100644
> --- a/include/accel/tcg/iommu.h
> +++ b/include/accel/tcg/iommu.h
> @@ -7,6 +7,10 @@
>   #ifndef ACCEL_TCG_IOMMU_H
>   #define ACCEL_TCG_IOMMU_H
>   
> +#ifndef CONFIG_TCG
> +#error Can only include this header with TCG
> +#endif

Rebase failed :>