From: Prem Mallappa <prem.malla...@broadcom.com> Add CPU_LOG_IOMMU to log traces related to the IOMMU.
Signed-off-by: Prem Mallappa <prem.malla...@broadcom.com> Signed-off-by: Eric Auger <eric.au...@redhat.com> --- This may be replaced by dynamic traces later on --- include/qemu/log.h | 1 + util/log.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/include/qemu/log.h b/include/qemu/log.h index a50e994..906913b 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -43,6 +43,7 @@ static inline bool qemu_log_separate(void) #define CPU_LOG_PAGE (1 << 14) #define LOG_TRACE (1 << 15) #define CPU_LOG_TB_OP_IND (1 << 16) +#define CPU_LOG_IOMMU (1 << 17) /* Returns true if a bit is set in the current loglevel mask */ diff --git a/util/log.c b/util/log.c index 96f30dd..76968d6 100644 --- a/util/log.c +++ b/util/log.c @@ -258,6 +258,8 @@ const QEMULogItem qemu_log_items[] = { "show CPU registers before entering a TB (lots of logs)" }, { CPU_LOG_MMU, "mmu", "log MMU-related activities" }, + { CPU_LOG_IOMMU, "iommu", + "log IOMMU-related activities" }, { CPU_LOG_PCALL, "pcall", "x86 only: show protected mode far calls/returns/exceptions" }, { CPU_LOG_RESET, "cpu_reset", -- 2.5.5