]> Git Repo - qemu.git/commit
iommu: Add IOMMU index argument to notifier APIs
authorPeter Maydell <[email protected]>
Fri, 15 Jun 2018 13:57:16 +0000 (14:57 +0100)
committerPeter Maydell <[email protected]>
Fri, 15 Jun 2018 14:23:34 +0000 (15:23 +0100)
commitcb1efcf462a2ff72926e0c5267a2e1d95490f347
tree9d45fea393ff756b3a7c228d93210f7decf472c2
parent21f402093c5ee7363f5ba56916cd5c651b424fef
iommu: Add IOMMU index argument to notifier APIs

Add support for multiple IOMMU indexes to the IOMMU notifier APIs.
When initializing a notifier with iommu_notifier_init(), the caller
must pass the IOMMU index that it is interested in. When a change
happens, the IOMMU implementation must pass
memory_region_notify_iommu() the IOMMU index that has changed and
that notifiers must be called for.

IOMMUs which support only a single index don't need to change.
Callers which only really support working with IOMMUs with a single
index can use the result of passing MEMTXATTRS_UNSPECIFIED to
memory_region_iommu_attrs_to_index().

Signed-off-by: Peter Maydell <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Reviewed-by: Alex BennĂ©e <[email protected]>
Message-id: 20180604152941[email protected]
hw/i386/intel_iommu.c
hw/ppc/spapr_iommu.c
hw/s390x/s390-pci-inst.c
hw/vfio/common.c
hw/virtio/vhost.c
include/exec/memory.h
memory.c
This page took 0.031101 seconds and 4 git commands to generate.