Re: [Qemu-devel] [PATCH v2 1/7] memory: tune last param of iommu_ops.translate()

2017-04-17 Thread David Gibson
On Mon, Apr 17, 2017 at 07:32:04PM +0800, Peter Xu wrote: > 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

[Qemu-devel] [PATCH v2 1/7] memory: tune last param of iommu_ops.translate()

2017-04-17 Thread Peter Xu
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