ppc/pnv: Fail DMA access if page permissions are not correct
commit50c8e11ac0672b726a2b3e2217cb32dc8416299f
authorFrederic Barrat <fbarrat@linux.ibm.com>
Fri, 28 Jan 2022 12:15:02 +0000 (28 13:15 +0100)
committerCédric Le Goater <clg@kaod.org>
Fri, 28 Jan 2022 12:15:02 +0000 (28 13:15 +0100)
tree39bd75563dbbc6bcc19a59cb1980876187288301
parente31ea5d89b613072e64b83f67e9763e9b149b87e
ppc/pnv: Fail DMA access if page permissions are not correct

If an iommu page has wrong permissions, an error message is displayed,
but the access is allowed, which is odd. This patch fixes it.

Signed-off-by: Frederic Barrat <fbarrat@linux.ibm.com>
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
Message-Id: <20220121152350.381685-1-fbarrat@linux.ibm.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
hw/pci-host/pnv_phb3.c
hw/pci-host/pnv_phb4.c