]> git.proxmox.com Git - mirror_qemu.git/commit
intel-iommu: start to use error_report_once
authorPeter Xu <peterx@redhat.com>
Wed, 15 Aug 2018 09:53:27 +0000 (17:53 +0800)
committerMarkus Armbruster <armbru@redhat.com>
Mon, 27 Aug 2018 13:00:45 +0000 (15:00 +0200)
commit1376211f77bdcd84dc4acb877690f7399d8cf58a
treeadd1ea288d0cf2e2f224e86db0db7168bde25844
parentbc6a69dd4bfa41ae56235dcbb9a28a56e12a7dc6
intel-iommu: start to use error_report_once

Replace existing trace_vtd_err() with error_report_once() then stderr
will capture something if any of the error happens, meanwhile we don't
suffer from any DDOS.  Then remove the trace point.  Since at it,
provide more information where proper (now we can pass parameters into
the report function).

Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <20180815095328.32414-3-peterx@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
[Two format strings fixed, whitespace tidied up]
Signed-off-by: Markus Armbruster <armbru@redhat.com>
hw/i386/intel_iommu.c
hw/i386/trace-events