[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [RFC v3 1/5] log: Add new IOMMU type
From: |
Eric Auger |
Subject: |
[Qemu-devel] [RFC v3 1/5] log: Add new IOMMU type |
Date: |
Thu, 30 Mar 2017 21:42:14 +0200 |
From: Prem Mallappa <address@hidden>
Add CPU_LOG_IOMMU to log traces related to the IOMMU.
Signed-off-by: Prem Mallappa <address@hidden>
Signed-off-by: Eric Auger <address@hidden>
---
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
- [Qemu-devel] [RFC v3 0/5] SMMUv3 Emmulation Support, Eric Auger, 2017/03/30
- [Qemu-devel] [RFC v3 1/5] log: Add new IOMMU type,
Eric Auger <=
- [Qemu-devel] [RFC v3 2/5] hw/arm/smmu-common: smmu base class, Eric Auger, 2017/03/30
- [Qemu-devel] [RFC v3 4/5] hw/arm/virt: Add SMMUv3 to the virt board, Eric Auger, 2017/03/30
- [Qemu-devel] [RFC v3 5/5] hw/arm/virt: Add 2.10 machine type, Eric Auger, 2017/03/30
- [Qemu-devel] [RFC v3 3/5] hw/arm/smmuv3: smmuv3 emulation model, Eric Auger, 2017/03/30
- Re: [Qemu-devel] [RFC v3 0/5] SMMUv3 Emmulation Support, no-reply, 2017/03/31
- Re: [Qemu-devel] [RFC v3 0/5] SMMUv3 Emmulation Support, Radha Mohan, 2017/03/31