From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41131) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dJKMB-0006yw-Fz for qemu-devel@nongnu.org; Fri, 09 Jun 2017 09:53:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dJKMA-0006YD-Nz for qemu-devel@nongnu.org; Fri, 09 Jun 2017 09:53:43 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36256) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dJKMA-0006XD-IZ for qemu-devel@nongnu.org; Fri, 09 Jun 2017 09:53:42 -0400 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 618A2334585 for ; Fri, 9 Jun 2017 13:53:41 +0000 (UTC) From: Peter Xu Date: Fri, 9 Jun 2017 21:53:26 +0800 Message-Id: <1497016409-22650-1-git-send-email-peterx@redhat.com> Subject: [Qemu-devel] [PATCH v2 0/3] VT-d: convert the rest of DPRINTF()s List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: "Michael S . Tsirkin" , Marcel Apfelbaum , peterx@redhat.com, Jason Wang v2: - fix the issue that patchew reported - further refactor patch 2 to make it better Mainly I am doing the translation and then we can get rid of that. Finally we won't need to recompile for its debugging any more. I did spend some time on considering which DPRINTF to remove, which one to convert to trace_*, also I am more careful this time with the naming, e.g., I named all the error cases with trace_vtd_err_*, so that we can easily get them when as long as we have a HMP interface, using: trace-event vtd_err* on The next two patches are simple cleanups. Please review. Thanks. (I really want this series to be in asap... I should just do this months ago) Peter Xu (3): intel_iommu: switching the rest DPRINTF to trace intel_iommu: cleanup vtd_{do_}iommu_translate() intel_iommu: cleanup vtd_interrupt_remap_msi() hw/i386/intel_iommu.c | 421 +++++++++++++++-------------------------- hw/i386/intel_iommu_internal.h | 1 + hw/i386/trace-events | 44 +++++ 3 files changed, 196 insertions(+), 270 deletions(-) -- 2.7.4