]> git.proxmox.com Git - mirror_qemu.git/commit - memory.c
memory: add MemoryRegionIOMMUOps.replay() callback
authorPeter Xu <peterx@redhat.com>
Fri, 7 Apr 2017 10:59:11 +0000 (18:59 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 20 Apr 2017 18:22:41 +0000 (15:22 -0300)
commitfaa362e3cc94bf739a89b457693e3fbd7a4b95c4
tree1351dee21f56aad7fa67295d6fb27e18d4928ca7
parentbd2bfa4c52e5f4dc6dbaa5be0521aedc31cb53d9
memory: add MemoryRegionIOMMUOps.replay() callback

Originally we have one memory_region_iommu_replay() function, which is
the default behavior to replay the translations of the whole IOMMU
region. However, on some platform like x86, we may want our own replay
logic for IOMMU regions. This patch adds one more hook for IOMMUOps for
the callback, and it'll override the default if set.

Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: \"Michael S. Tsirkin\" <mst@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Message-Id: <1491562755-23867-6-git-send-email-peterx@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
include/exec/memory.h
memory.c