Skip to contentSkip to conversation

accel/tcg: Restrict IOMMU declarations

PATCH Superseded Philippe Mathieu-Daudé 1 participant 2 messages Jun 16

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

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".

---
 include/accel/tcg/iommu.h | 4 ++++
 1 file changed, 4 insertions(+)
include/accel/tcg/iommu.h +4 -0
index 2b6d0ff7282..a4032a292e5 100644
@@ -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
#1 lore raw
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".

---
  include/accel/tcg/iommu.h | 4 ++++
  1 file changed, 4 insertions(+)
include/accel/tcg/iommu.h +0 -0
index 2b6d0ff7282..a4032a292e5 100644

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 :>