]> git.proxmox.com Git - mirror_qemu.git/commit
memory: Add MemoryRegionIOMMUOps.notify_started/stopped callbacks
authorAlexey Kardashevskiy <aik@ozlabs.ru>
Thu, 30 Jun 2016 19:00:23 +0000 (13:00 -0600)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 30 Jun 2016 19:00:23 +0000 (13:00 -0600)
commitd22d8956b185c002b50a4d0883aff61f857347ef
tree25764240d91bdafe36b0b98d1b5250b09e4e7e79
parente37dac06dc4e85a2f46c24261c0dfdf2a30b50e3
memory: Add MemoryRegionIOMMUOps.notify_started/stopped callbacks

The IOMMU driver may change behavior depending on whether a notifier
client is present.  In the case of POWER, this represents a change in
the visibility of the IOTLB, for other drivers such as intel-iommu and
future AMD-Vi emulation, notifier support is not yet enabled and this
provides the opportunity to flag that incompatibility.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Peter Xu <peterx@redhat.com>
Tested-by: Peter Xu <peterx@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
[new log & extracted from [PATCH qemu v17 12/12] spapr_iommu, vfio, memory: Notify IOMMU about starting/stopping listening]
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/common.c
include/exec/memory.h
memory.c