Re: [PATCH] ppc/pnv: Fail DMA access if page permissions are not correct

2022-01-24 Thread Frederic Barrat
On 21/01/2022 18:35, Cédric Le Goater wrote: On 1/21/22 16:23, Frederic Barrat wrote: If an iommu page has wrong permissions, an error message is displayed, but the access is allowed, which is odd. This patch fixes it. Being curious. How do you generate such errors ? could we have the outp

Re: [PATCH] ppc/pnv: Fail DMA access if page permissions are not correct

2022-01-21 Thread Cédric Le Goater
On 1/21/22 16:23, Frederic Barrat wrote: If an iommu page has wrong permissions, an error message is displayed, but the access is allowed, which is odd. This patch fixes it. Being curious. How do you generate such errors ? could we have the output ? Thanks, C. Signed-off-by: Frederic Bar

Re: [PATCH] ppc/pnv: Fail DMA access if page permissions are not correct

2022-01-21 Thread Daniel Henrique Barboza
On 1/21/22 12:23, Frederic Barrat wrote: 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 --- Reviewed-by: Daniel Henrique Barboza hw/pci-host/pnv_phb3.c | 11 ++-

[PATCH] ppc/pnv: Fail DMA access if page permissions are not correct

2022-01-21 Thread Frederic Barrat
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 --- hw/pci-host/pnv_phb3.c | 11 ++- hw/pci-host/pnv_phb4.c | 11 ++- 2 files changed, 12 insertions(+), 10 deletion