From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795547329; b=z1BdCPBK5hnkGBFp+pXZPxYoF8ORYVHavfrdFsva3rUB7GCoBBCiTmcR1a5JhrBtskd+ +2SMlOApcBRQ6iklol3EXUX3DZQ7N3y4KkXOz21KxjKvOSCt5N6r4oEh32hacmnEZCkdO /JL/VEvDfkLKiyJqM5KazkDXfMaz9R7/ZDTSMTZHinTNOUuCFPrXBg2CoooXk5Z+yNyJR PEc8kuvwlaH9b+ZGsW78E9PI1SgUrROqZouUiGYrKJiOrMQRo5WsBxn0VIQAh3hbvIGOM UXwLy3kNCCNCt0L/C4jbxMno8h9a4ZF5tk/H9D+EQ2Pfkvc4xAqLIDSL5Ecbmzn3hMw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795547329; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=GRhi0lNFEfqHMzVRFnQRG0j8Rx78B7r6dpHu4uYmEXA=; b=AavNr3h/wv4xvSH1YNyy8GIZa6Yl1kTcoqrcatAyKK63N+n12KXAkKS0Rcp/B3Pb9qBk 5HHUgsGKa/RhHCTWpmPKhSjntfkyd0/Ak1hPB6QZNBFtW0zSg2DyaQ91gKr69zdLZ080o XxQFB10s8LtsczdxpeZk9nMA5DOH61HzgAlRNhRNgwDoCxsPMy3d/ycp+ZeRi3nUV4Smf 1AHMydUTrxBGuwwbHhJyxKhYdWVboLna3gKC46id928PUFs1gXUYuDDXviiFMmgJLvF6h VfoOCLX12kRa88x6y6OHQW2LmHPemLle7f5m1f7HBQHHcsYF5aDo42dWWdv+Hhd8TeA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Pmqra0hb; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C6FB3606A32A for ; Tue, 24 Nov 2026 19:08:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux-foundation.org header.i=@linux-foundation.org header.a=rsa-sha256 header.s=korg header.b=Pmqra0hb Received: by smtp.kernel.org (Postfix) with ESMTPSA id 3F55C1F000D2; Tue, 24 Nov 2026 19:08:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795547329; bh=GRhi0lNFEfqHMzVRFnQRG0j8Rx78B7r6dpHu4uYmEXA=; h=Date:To:From:In-Reply-To:References:Subject; b=Pmqra0hbFPhvDvYVuiZvv7iExO0TE3uCw2vTznIg06sfYuaxp1cAvphxLFQ7hk8PN EisfXeKR9KrskLGBd/JliorcPd4LC4NHD6ZBZ+J6Jo2nAlwpNkQpqXBlq3JraIz9vM VGKupIcd9mJGji+d8ZnIiW0zGywk/qlfu4zLAxzk= Date: Tue, 24 Nov 2026 11:08:48 -0800 To: mm-commits@vger.kernel.org,xuanzhuo@linux.alibaba.com,wei.liu@kernel.org, tglx@kernel.org,sumit.garg@kernel.org,stephen.smalley.work@gmail.com, sstabellini@kernel.org,sshegde@linux.ibm.com,scott.branden@broadcom.com, ryan_chen@aspeedtech.com,ritesh.list@gmail.com,richardcochran@gmail.com, paul@paul-moore.com,pabeni@redhat.com,omosnacek@gmail.com, oleksandr_tyshchenko@epam.com,npiggin@gmail.com,mst@redhat.com, mpe@ellerman.id.au,mingo@redhat.com,mhklinux@outlook.com,maddy@linux.ibm.com, kuba@kernel.org,konradybcio@kernel.org,kameroncarr@linux.microsoft.com, joel@jms.id.au,jgross@suse.com,jens.wiklander@oss.qualcomm.com, jenswi@kernel.org,jasowangio@gmail.com,jarkko@kernel.org,jack@suse.cz, hpa@zytor.com,haiyangz@microsoft.com,gregkh@linuxfoundation.org, eperezma@redhat.com,edumazet@kernel.org,dwmw@amazon.co.uk, decui@microsoft.com,davem@davemloft.net,dave.hansen@linux.intel.com, chleroy@kernel.org,bp@alien8.de,billy_tsai@aspeedtech.com,arnd@arndb.de, andrew+netdev@lunn.ch,andrew@codeconstruct.com.au,andersson@kernel.org, abel.vesa@oss.qualcomm.com,ljs@kernel.org,akpm@linux-foundation.org From: Andrew Morton In-Reply-To: <20261124-late-2026-mmap_prepare-v2-2-0b0d99d655f9@kernel.org> References: <20261124-late-2026-mmap_prepare-v2-2-0b0d99d655f9@kernel.org> Subject: + kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare.patch added to mm-new branch Message-Id: <20261124190849.3F55C1F000D2@smtp.kernel.org> X-Mailing-List: mm-commits@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list The patch titled Subject: KVM: PPC: Book3S: convert spapr TCE mmap hook to mmap_prepare has been added to the -mm mm-new branch. Its filename is kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare.patch This patch will later appear in the mm-new branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Note, mm-new is a provisional staging ground for work-in-progress patches, and acceptance into mm-new is a notification for others take notice and to finish up reviews. Please do not hesitate to respond to review feedback and post updated versions to replace or incrementally fixup patches in mm-new. The mm-new branch of mm.git is not included in linux-next If a few days of testing in mm-new is successful, the patch will me moved into mm.git's mm-unstable branch, which is included in linux-next Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via various branches at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there most days ------------------------------------------------------ From: "Lorenzo Stoakes (ARM)" Subject: KVM: PPC: Book3S: convert spapr TCE mmap hook to mmap_prepare Date: Tue, 24 Nov 2026 14:02:45 +0000 Move from the deprecated mmap hook to the new mmap_prepare hook. The hook only sets the VMA operations. Link: https://patch.msgid.link/20261124-late-2026-mmap_prepare-v2-2-0b0d99d655f9@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) Signed-off-by: Andrew Morton Cc: Juergen Gross Cc: Stefano Stabellini Cc: Oleksandr Tyshchenko Cc: Madhavan Srinivasan Cc: Nicholas Piggin Cc: Michael Ellerman Cc: Christophe Leroy Cc: Ritesh Harjani (IBM) Cc: Shrikanth Hegde Cc: Haiyang Zhang Cc: Wei Liu Cc: Dexuan Cui Cc: Michael S. Tsirkin Cc: Jason Wang Cc: Eugenio Pérez Cc: Xuan Zhuo Cc: Jarkko Sakkinen Cc: Dave Hansen Cc: Thomas Gleixner Cc: Ingo Molnar Cc: Borislav Petkov Cc: H. Peter Anvin Cc: Paul Moore Cc: Stephen Smalley Cc: Ondrej Mosnáček Cc: Joel Stanley Cc: Andrew Jeffery Cc: Ryan Chen Cc: Billy Tsai Cc: Bjorn Andersson Cc: Konrad Dybcio Cc: Jens Wiklander Cc: Sumit Garg Cc: Scott Branden Cc: Arnd Bergmann Cc: Greg Kroah-Hartman Cc: Richard Cochran Cc: Andrew Lunn Cc: David S. Miller Cc: Eric Dumazet Cc: Jakub Kicinski Cc: Paolo Abeni Cc: Jens Wiklander Cc: Jan Kara Cc: Abel Vesa Cc: Kameron Carr Cc: Michael Kelley Cc: David Woodhouse arch/powerpc/kvm/book3s_64_vio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/arch/powerpc/kvm/book3s_64_vio.c~kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare +++ a/arch/powerpc/kvm/book3s_64_vio.c @@ -247,9 +247,9 @@ static const struct vm_operations_struct .fault = kvm_spapr_tce_fault, }; -static int kvm_spapr_tce_mmap(struct file *file, struct vm_area_struct *vma) +static int kvm_spapr_tce_mmap_prepare(struct vm_area_desc *desc) { - vma->vm_ops = &kvm_spapr_tce_vm_ops; + desc->vm_ops = &kvm_spapr_tce_vm_ops; return 0; } @@ -282,7 +282,7 @@ static int kvm_spapr_tce_release(struct } static const struct file_operations kvm_spapr_tce_fops = { - .mmap = kvm_spapr_tce_mmap, + .mmap_prepare = kvm_spapr_tce_mmap_prepare, .release = kvm_spapr_tce_release, }; _ Patches currently in -mm which might be from ljs@kernel.org are mm-msync-return-enomem-if-page-aligned-length-overflows.patch mm-vma-drop-mm-asynchronously-in-vma_start_read.patch mm-vma-predicate-vma_assert_stabilised-on-config_debug_vm.patch mm-only-assert-mmap-locks-if-config_debug_vm-or-lockdep-is-set.patch mm-only-assert-vma-locks-if-config_debug_vm-is-set.patch mm-convert-warn_on_onces-to-vm_warn_on_once-in-vma-lock-code.patch mm-madvise-zap-markers-from-guard-regions.patch mm-mmap-free-gathered-pages-before-mmf_oom_skip.patch percpu-fix-contig-hints-that-are-too-low.patch percpu-search-the-whole-reserved-chunk.patch mm-filemap-convert-fault-and-readahead-logic-to-use-vma_flags_t.patch mm-madvise-convert-madvise_vma_behavior-to-use-vma_flags_t.patch mm-convert-miscellaneous-vma-flag-tests-to-use-vma_flags_t.patch fs-proc-task_mmu-convert-vma-flag-tests-to-use-vma_flags_t.patch fs-coredump-convert-vma_dump_size-to-use-vma_flags_t.patch uprobes-convert-vma-flag-tests-to-use-vma_flags_t.patch perf-convert-vma-flag-tests-to-use-vma_flags_t.patch selinux-convert-vma-flag-tests-to-use-vma_flags_t.patch apparmor-convert-vma-flag-tests-to-use-vma_flags_t.patch ima-convert-vma-flag-tests-to-use-vma_flags_t.patch ipe-convert-vma-flag-tests-to-use-vma_flags_t.patch xen-privcmd-convert-mmap-hook-to-mmap_prepare.patch kvm-ppc-book3s-convert-spapr-tce-mmap-hook-to-mmap_prepare.patch mshv_vtl-convert-mmap-hooks-to-mmap_prepare.patch x86-sgx-convert-vepc-mmap-hook-to-mmap_prepare.patch udf-convert-mmap-hook-to-mmap_prepare.patch selinuxfs-convert-mmap-hooks-to-mmap_prepare.patch xen-convert-xenstore-interface-mmap-hooks-to-mmap_prepare.patch soc-aspeed-convert-lpc-and-p2a-control-mmap-hooks-to-mmap_prepare.patch soc-qcom-rmtfs_mem-convert-mmap-hook-to-mmap_prepare.patch tee-convert-shm-mmap-hook-to-mmap_prepare.patch misc-bcm-vk-convert-mmap-hook-to-mmap_prepare.patch ptp-vmclock-convert-mmap-hook-to-mmap_prepare.patch vhost-vdpa-convert-mmap-hook-to-mmap_prepare.patch