accel/tcg: Restrict IOMMU declarations
PATCH v2 1/1 accel/tcg: Restrict IOMMU declarations
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é <[email protected]>
--- include/accel/tcg/iommu.h | 4 ++++ 1 file changed, 4 insertions(+)
include/accel/tcg/iommu.h +4 -0
@@ -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
Signature · 1 line
2.53.0
Quoted 13 lines · Philippe Mathieu-Daudé
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é <[email protected]>--- include/accel/tcg/iommu.h | 4 ++++ 1 file changed, 4 insertions(+)include/accel/tcg/iommu.h +0
-0
include/accel/tcg/iommu.h line 12
Quoted 6 lines
include/accel/tcg/iommu.h +3
-0@@ -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 :>