Re: [PATCH v3 04/18] vfio: powerpc: Move locked_vm accounting to a helper

2014-07-28 Thread Alexey Kardashevskiy
On 07/28/2014 10:46 AM, Benjamin Herrenschmidt wrote: > On Thu, 2014-07-24 at 18:47 +1000, Alexey Kardashevskiy wrote: >> Additional DMA windows support is coming and accounting will include them >> so let's move this code to a helper for reuse. > > This code looks a LOT like the one you added in

Re: [PATCH v3 04/18] vfio: powerpc: Move locked_vm accounting to a helper

2014-07-27 Thread Benjamin Herrenschmidt
On Thu, 2014-07-24 at 18:47 +1000, Alexey Kardashevskiy wrote: > Additional DMA windows support is coming and accounting will include them > so let's move this code to a helper for reuse. This code looks a LOT like the one you added in the previous patch (ie. kvmppc_account_memlimit()), though in

[PATCH v3 04/18] vfio: powerpc: Move locked_vm accounting to a helper

2014-07-24 Thread Alexey Kardashevskiy
Additional DMA windows support is coming and accounting will include them so let's move this code to a helper for reuse. Signed-off-by: Alexey Kardashevskiy --- drivers/vfio/vfio_iommu_spapr_tce.c | 54 - 1 file changed, 36 insertions(+), 18 deletions(-) diff