Skip to content

VT-d: convert the rest of DPRINTF()s

Peter Xu qemu-devel 2 versions New

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 0 repliesNew
  2. v13 patches 1 replySuperseded

Changes in v2 from the cover letter

- fix the issue that patchew reported
- further refactor patch 2 to make it better

Patches in v2 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3intel_iommu: switching the rest DPRINTF to tracehw/i386/intel_iommu.c hw/i386/trace-events+153 -2450 replies
2/3intel_iommu: cleanup vtd_{do_}iommu_translate()hw/i386/intel_iommu.c hw/i386/intel_iommu_internal.h hw/i386/trace-events+44 -240 replies
3/3intel_iommu: cleanup vtd_interrupt_remap_msi()hw/i386/intel_iommu.c+5 -70 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [Qemu-devel] [PATCH v2 0/3] VT-d: convert the rest of DPRINTF()s

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(-)
Signature · 1 line
2.7.4