memory: remove the last param in memory_region_iommu_replay()
authorPeter Xu <peterx@redhat.com>
Fri, 19 May 2017 03:19:41 +0000 (11:19 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 May 2017 18:25:27 +0000 (21:25 +0300)
commitad523590f62cf5d44e97388de370d27b95b25aff
treeed655b12b21d9c9b5507fed8ed3be9ca17ea54da
parentbf55b7afce53718ef96f4e6616da62c0ccac37dd
memory: remove the last param in memory_region_iommu_replay()

We were always passing in that one as "false" to assume that's an read
operation, and we also assume that IOMMU translation would always have
that read permission. A better permission would be IOMMU_NONE since the
replay is after all not a real read operation, but just a page table
rebuilding process.

CC: David Gibson <david@gibson.dropbear.id.au>
CC: Paolo Bonzini <pbonzini@redhat.com>
Reviewed-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>
hw/vfio/common.c
include/exec/memory.h
memory.c