]> git.proxmox.com Git - mirror_qemu.git/commit - include/exec/memory.h
iommu: add is_write as a parameter to the translate function of MemoryRegionIOMMUOps
authorLe Tan <tamlokveer@gmail.com>
Sat, 16 Aug 2014 05:55:37 +0000 (13:55 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 28 Aug 2014 21:10:22 +0000 (23:10 +0200)
commit8d7b8cb9c22b7aa809050800a62e89f869054b35
treee42fa8c57fb67152d077d126c151819e815dffd1
parent187de915e8d06aaf82be206aebc551c82bf0670c
iommu: add is_write as a parameter to the translate function of MemoryRegionIOMMUOps

Add a bool variable is_write as a parameter to the translate function of
MemoryRegionIOMMUOps to indicate the operation of the access. It can be
used for correct fault reporting from within the callback.
Change the interface of related functions.

Signed-off-by: Le Tan <tamlokveer@gmail.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
exec.c
hw/alpha/typhoon.c
hw/pci-host/apb.c
hw/ppc/spapr_iommu.c
include/exec/memory.h