Re: [Qemu-devel] [PATCH qemu RFC 1/7] vfio/spapr: Fix indirect levels calculation

2018-11-18 Thread Alexey Kardashevskiy
On 19/11/2018 12:45, David Gibson wrote: > On Tue, Nov 13, 2018 at 07:30:58PM +1100, Alexey Kardashevskiy wrote: >> The current code assumes that we can address more bits on a PCI bus >> for DMA than we really can. Limit to the known tested maximum of 55 bits >> and assume 64K IOMMU pages. > >

Re: [Qemu-devel] [PATCH qemu RFC 1/7] vfio/spapr: Fix indirect levels calculation

2018-11-18 Thread David Gibson
On Tue, Nov 13, 2018 at 07:30:58PM +1100, Alexey Kardashevskiy wrote: > The current code assumes that we can address more bits on a PCI bus > for DMA than we really can. Limit to the known tested maximum of 55 bits > and assume 64K IOMMU pages. This doesn't make much sense to me. It looks

[Qemu-devel] [PATCH qemu RFC 1/7] vfio/spapr: Fix indirect levels calculation

2018-11-13 Thread Alexey Kardashevskiy
The current code assumes that we can address more bits on a PCI bus for DMA than we really can. Limit to the known tested maximum of 55 bits and assume 64K IOMMU pages. Signed-off-by: Alexey Kardashevskiy --- hw/vfio/spapr.c | 3 ++- hw/vfio/trace-events | 2 +- 2 files changed, 3