intel_iommu, amd_iommu: allow UNMAP notifiers
commita3276f786c84d3410be5bc3a4b3e5036745e5a90
authorPeter Xu <peterx@redhat.com>
Fri, 23 Sep 2016 05:02:28 +0000 (23 13:02 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 27 Sep 2016 09:57:28 +0000 (27 11:57 +0200)
treeadfb07caa9b92dc060d148aa3667455c50dc3b72
parent5bf3d319030b1e95116ba49b31339f2bdd1d3b2a
intel_iommu, amd_iommu: allow UNMAP notifiers

x86 vIOMMUs still lack of a complete IOMMU notifier mechanism.
Before that is achieved, let's open a door for vhost DMAR support,
which only requires cache invalidations (UNMAP operations).

Meanwhile, convert hw_error() to error_report() and exit(1), to make
the error messages cleaner and obvious (no CPU registers will be dumped).

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1474606948-14391-4-git-send-email-peterx@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/amd_iommu.c
hw/i386/intel_iommu.c