From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ozlabs.ru (ozlabs.ru [83.169.36.222]) by lists.ozlabs.org (Postfix) with ESMTP id 3tTB1k1zhpzDvws for ; Wed, 30 Nov 2016 17:52:42 +1100 (AEDT) From: Alexey Kardashevskiy To: linuxppc-dev@lists.ozlabs.org Cc: Alexey Kardashevskiy , Alex Williamson , David Gibson , Paul Mackerras , kvm@vger.kernel.org Subject: [PATCH kernel v7 0/7] powerpc/spapr/vfio: Put pages on VFIO container shutdown Date: Wed, 30 Nov 2016 17:51:58 +1100 Message-Id: <1480488725-12783-1-git-send-email-aik@ozlabs.ru> List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , These patches are to fix a bug when pages stay pinned hours after QEMU which requested pinning exited. Change to v6 it in the last 2 patches, individual patches got detailed changelog. Please comment. Thanks. Alexey Kardashevskiy (7): powerpc/iommu: Pass mm_struct to init/cleanup helpers powerpc/iommu: Stop using @current in mm_iommu_xxx vfio/spapr: Postpone allocation of userspace version of TCE table vfio/spapr: Add a helper to create default DMA window vfio/spapr: Postpone default window creation vfio/spapr: Reference mm in tce_container powerpc/mm/iommu, vfio/spapr: Put pages on VFIO container shutdown arch/powerpc/include/asm/mmu_context.h | 20 +- arch/powerpc/kernel/setup-common.c | 2 +- arch/powerpc/mm/mmu_context_book3s64.c | 6 +- arch/powerpc/mm/mmu_context_iommu.c | 60 ++---- drivers/vfio/vfio_iommu_spapr_tce.c | 328 ++++++++++++++++++++++----------- 5 files changed, 250 insertions(+), 166 deletions(-) -- 2.5.0.rc3