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

2019-02-04 Thread David Gibson
On Thu, Jan 17, 2019 at 01:51:13PM +1100, Alexey Kardashevskiy wrote: > The current code assumes that we can address more bits on a PCI bus > for DMA than we really can but there is no way knowing the actual limit. > > This makes a better guess for the number of levels and if the kernel > fails to

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

2019-01-16 Thread Alexey Kardashevskiy
The current code assumes that we can address more bits on a PCI bus for DMA than we really can but there is no way knowing the actual limit. This makes a better guess for the number of levels and if the kernel fails to allocate that, this increases the level numbers till succeeded or reached the 6