]> git.proxmox.com Git - mirror_qemu.git/commit
sPAPR/IOMMU: Fix TCE entry permission
authorGavin Shan <gwshan@linux.vnet.ibm.com>
Mon, 14 Jul 2014 12:09:43 +0000 (22:09 +1000)
committerAlexander Graf <agraf@suse.de>
Tue, 15 Jul 2014 14:11:59 +0000 (16:11 +0200)
commit27e27782f78212cbd97170b0854c35a0738cfd34
treeb89877a5020186b5f4fcd49a2cfebdd5389c433d
parentf92f5da108225fc7dcc5f357fdc473083890fe3f
sPAPR/IOMMU: Fix TCE entry permission

The permission of TCE entry should exclude physical base address.
Otherwise, unmapping TCE entry can be interpreted to mapping TCE
entry wrongly for VFIO devices.

Signed-off-by: Gavin Shan <gwshan@linux.vnet.ibm.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/misc/vfio.c
hw/ppc/spapr_iommu.c