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=1795547333; b=t7JP0Kxcws1S9NeLSh0L5HuOHJdkFpmzo8RvRiNHaNWfxjJn64MsRs1+WkjzwFmEmU6t yndz8tCJWyJMukhOLq7Q1bJ+sWQLmzbZN/u+8DmHyjlsQL7DF/xgVG2YzldKGzXLnUERr dAw2uBKcsRYwDAJ0iB/ItGKSnPieTtFoDIEYSsUqZFbkLRYz2tvWAftCRbbuYaHYGXfgA lrZUh5BP3KUIGSkfkQnR9TdBRFcy0SKqrVO77ImirW0bbBjU3IqJPqnc4IZ8s1xu+jHG2 cPz8DQnEh9fkPfPG74tigrAZdt0xayaZyHY2dMwk3ISFKKqMCpKx+Dnz4QYizYBeCXA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795547333; h=Received:DKIM-Signature:Date:To:From:In-Reply-To:References:Subject: Message-Id; bh=dQjU96NL5T7cP4bf2YDgIoplrx0hb4jbA+Y187BP72w=; b=TCmp4vVaZCZOqvl3GtWQFuJ9rTuRZPTBtFnGos3zxzpQyJn5jBAC05EmyCFL1GvF2ARn A/WozVUzg1xW9APdR/YPXwsUhmdkUBbF7H+AZmfDbCLD+//0R2oS9h+Ksnnm+o40aB/Cj mKWjw8Sl4mQ1q+KVqEjPSkEC6j6okCsbx4dcCjUV7X6hLeOLY85lw5H5fvbQUr/laVFkg e6DdTcCPTUYF1+fNtJLy4OkMwvZR2u6wOLtL0wZUQdiFM4sSjHWOf4V+7vqnnsCxgjeIj h752mp14JEaCMGNzsEsgA1MU1PYXgR9EIok9k5Nhi0JpFRjZgGEY2oaw6NYecUBZKcg== 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=jnzuro6k; 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 86F0D606A321 for ; Tue, 24 Nov 2026 19:08:53 +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=jnzuro6k Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57CFF1F000C0; Tue, 24 Nov 2026 19:08:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=korg; t=1795547332; bh=dQjU96NL5T7cP4bf2YDgIoplrx0hb4jbA+Y187BP72w=; h=Date:To:From:In-Reply-To:References:Subject; b=jnzuro6kUM8TSPcBxPicAoDzi+GTe21q/2/R+ODqhUuajPKg9WnZta9L0kjakHXSH 1XPC3Zqfbq/aM6a1ZtHHlscDAqG8wtEPLHOdFfTl6aplNWOUKoMA/1d2enFqpBELRi K7Qeg8vnwu4pjJd7K3KmQ2sIIm4vpTw6S4CFSLOo= Date: Tue, 24 Nov 2026 11:08:51 -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-3-0b0d99d655f9@kernel.org> References: <20261124-late-2026-mmap_prepare-v2-3-0b0d99d655f9@kernel.org> Subject: + mshv_vtl-convert-mmap-hooks-to-mmap_prepare.patch added to mm-new branch Message-Id: <20261124190852.57CFF1F000C0@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: mshv_vtl: convert mmap hooks to mmap_prepare has been added to the -mm mm-new branch. Its filename is mshv_vtl-convert-mmap-hooks-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/mshv_vtl-convert-mmap-hooks-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: mshv_vtl: convert mmap hooks to mmap_prepare Date: Tue, 24 Nov 2026 14:02:46 +0000 Move from the deprecated mmap hook to the new mmap_prepare hook for both the mshv_vtl and mshv_vtl_low devices. These only set VMA operations and flags. Link: https://patch.msgid.link/20261124-late-2026-mmap_prepare-v2-3-0b0d99d655f9@kernel.org Signed-off-by: Lorenzo Stoakes (ARM) Signed-off-by: Andrew Morton Tested-by: Kameron Carr Reviewed-by: Kameron Carr Reviewed-by: Michael Kelley 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: David Woodhouse drivers/hv/mshv_vtl_main.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) --- a/drivers/hv/mshv_vtl_main.c~mshv_vtl-convert-mmap-hooks-to-mmap_prepare +++ a/drivers/hv/mshv_vtl_main.c @@ -873,9 +873,9 @@ static const struct vm_operations_struct .fault = mshv_vtl_fault, }; -static int mshv_vtl_mmap(struct file *filp, struct vm_area_struct *vma) +static int mshv_vtl_mmap_prepare(struct vm_area_desc *desc) { - vma->vm_ops = &mshv_vtl_vm_ops; + desc->vm_ops = &mshv_vtl_vm_ops; return 0; } @@ -893,7 +893,7 @@ static const struct file_operations mshv .owner = THIS_MODULE, .unlocked_ioctl = mshv_vtl_ioctl, .release = mshv_vtl_release, - .mmap = mshv_vtl_mmap, + .mmap_prepare = mshv_vtl_mmap_prepare, }; static void mshv_vtl_synic_mask_vmbus_sint(void *info) @@ -1324,10 +1324,10 @@ static const struct vm_operations_struct .huge_fault = mshv_vtl_low_huge_fault, }; -static int mshv_vtl_low_mmap(struct file *filp, struct vm_area_struct *vma) +static int mshv_vtl_low_mmap_prepare(struct vm_area_desc *desc) { - vma->vm_ops = &mshv_vtl_low_vm_ops; - vm_flags_set(vma, VM_HUGEPAGE | VM_MIXEDMAP); + desc->vm_ops = &mshv_vtl_low_vm_ops; + vma_desc_set_flags(desc, VMA_HUGEPAGE_BIT, VMA_MIXEDMAP_BIT); return 0; } @@ -1335,7 +1335,7 @@ static int mshv_vtl_low_mmap(struct file static const struct file_operations mshv_vtl_low_file_ops = { .owner = THIS_MODULE, .open = mshv_vtl_low_open, - .mmap = mshv_vtl_low_mmap, + .mmap_prepare = mshv_vtl_low_mmap_prepare, }; static struct miscdevice mshv_vtl_low = { _ 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