Received: from eggs.gnu.org ([2001:4830:134:3::10]:42190) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biNqc-0007Ol-WB for qemu-devel@nongnu.org; Fri, 09 Sep 2016 11:36:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1biNqY-00021R-UF for qemu-devel@nongnu.org; Fri, 09 Sep 2016 11:36:10 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36986) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1biNqY-00021L-O3 for qemu-devel@nongnu.org; Fri, 09 Sep 2016 11:36:06 -0400 References: <20160822161740.4252-1-prem.mallappa@broadcom.com> <20160822161740.4252-2-prem.mallappa@broadcom.com> From: Auger Eric Message-ID: <3c8edc1c-fd1a-7da6-9274-ad4191eddbdc@redhat.com> Date: Fri, 9 Sep 2016 17:36:02 +0200 MIME-Version: 1.0 In-Reply-To: <20160822161740.4252-2-prem.mallappa@broadcom.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2 1/9] log: Add new IOMMU type List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Prem Mallappa , Peter Maydell , "Edgar E . Iglesias" , qemu-devel@nongnu.org Hi Prem, Missing commit message > 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) why is it prefixed with CPU_ ? besides all arm gic devices seem to use LOG_GUEST_ERROR. what is the rationale behind introducing a new enum? Thanks Eric > > /* 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", >