]> git.ipfire.org Git - thirdparty/qemu.git/commit
memory: tune last param of iommu_ops.translate()
authorPeter Xu <peterx@redhat.com>
Fri, 19 May 2017 03:19:40 +0000 (11:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 May 2017 18:25:27 +0000 (21:25 +0300)
commitbf55b7afce53718ef96f4e6616da62c0ccac37dd
treeac502b7d8fa21ab67434cd05c9a1390c6c2ddea6
parent9964e96dc9999cf7f7c936ee854a795415d19b60
memory: tune last param of iommu_ops.translate()

This patch converts the old "is_write" bool into IOMMUAccessFlags. The
difference is that "is_write" can only express either read/write, but
sometimes what we really want is "none" here (neither read nor write).
Replay is an good example - during replay, we should not check any RW
permission bits since thats not an actual IO at all.

CC: Paolo Bonzini <pbonzini@redhat.com>
CC: David Gibson <david@gibson.dropbear.id.au>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: David Gibson <david@gibson.dropbear.id.au>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Peter Xu <peterx@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Jason Wang <jasowang@redhat.com>
exec.c
hw/alpha/typhoon.c
hw/dma/rc4030.c
hw/i386/amd_iommu.c
hw/i386/intel_iommu.c
hw/pci-host/apb.c
hw/ppc/spapr_iommu.c
hw/s390x/s390-pci-bus.c
hw/s390x/s390-pci-inst.c
include/exec/memory.h
memory.c