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>
Showing
- exec.c 2 additions, 1 deletionexec.c
- hw/alpha/typhoon.c 1 addition, 1 deletionhw/alpha/typhoon.c
- hw/dma/rc4030.c 1 addition, 1 deletionhw/dma/rc4030.c
- hw/i386/amd_iommu.c 2 additions, 2 deletionshw/i386/amd_iommu.c
- hw/i386/intel_iommu.c 2 additions, 2 deletionshw/i386/intel_iommu.c
- hw/pci-host/apb.c 1 addition, 1 deletionhw/pci-host/apb.c
- hw/ppc/spapr_iommu.c 1 addition, 1 deletionhw/ppc/spapr_iommu.c
- hw/s390x/s390-pci-bus.c 1 addition, 1 deletionhw/s390x/s390-pci-bus.c
- hw/s390x/s390-pci-inst.c 1 addition, 1 deletionhw/s390x/s390-pci-inst.c
- include/exec/memory.h 8 additions, 2 deletionsinclude/exec/memory.h
- memory.c 2 additions, 1 deletionmemory.c
Loading
Please register or sign in to comment