From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44778) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbruD-0001Qc-5c for qemu-devel@nongnu.org; Mon, 22 Aug 2016 12:16:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bbru6-0002ZS-MP for qemu-devel@nongnu.org; Mon, 22 Aug 2016 12:16:56 -0400 Received: from mail-pa0-x235.google.com ([2607:f8b0:400e:c03::235]:33075) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bbru5-0002Z6-CE for qemu-devel@nongnu.org; Mon, 22 Aug 2016 12:16:50 -0400 Received: by mail-pa0-x235.google.com with SMTP id ti13so39032936pac.0 for ; Mon, 22 Aug 2016 09:16:48 -0700 (PDT) From: Prem Mallappa Date: Mon, 22 Aug 2016 21:47:32 +0530 Message-Id: <20160822161740.4252-2-prem.mallappa@broadcom.com> In-Reply-To: <20160822161740.4252-1-prem.mallappa@broadcom.com> References: <20160822161740.4252-1-prem.mallappa@broadcom.com> Subject: [Qemu-devel] [PATCH v2 1/9] log: Add new IOMMU type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , "Edgar E . Iglesias" , qemu-devel@nongnu.org Cc: Prem Mallappa Signed-off-by: Prem Mallappa --- 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 234fa81..3dd2131 100644 --- a/include/qemu/log.h +++ b/include/qemu/log.h @@ -42,6 +42,7 @@ static inline bool qemu_log_separate(void) #define CPU_LOG_TB_NOCHAIN (1 << 13) #define CPU_LOG_PAGE (1 << 14) #define LOG_TRACE (1 << 15) +#define CPU_LOG_IOMMU (1 << 16) /* Returns true if a bit is set in the current loglevel mask */ diff --git a/util/log.c b/util/log.c index 5ad72c1..62c4378 100644 --- a/util/log.c +++ b/util/log.c @@ -241,6 +241,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.9.3