On Tue, 2025-02-25 at 16:52 +0000, David Hildenbrand wrote:> On 21.02.25 17:07, Patrick Roy wrote: >> Make secretmem set AS_NO_DIRECT_MAP on its struct address_space, to drop >> all the vma_is_secretmem()/secretmem_mapping() checks that are based on >> checking explicitly for the secretmem ops structures. >> >> This drops a optimization in gup_fast_folio_allowed() where >> secretmem_mapping() was only called if CONFIG_SECRETMEM=y. secretmem is >> enabled by default since commit b758fe6df50d ("mm/secretmem: make it on >> by default"), so the secretmem check did not actually end up elided in >> most cases anymore anyway. >> >> Signed-off-by: Patrick Roy <roy...@amazon.co.uk> >> --- > > Ah, there it is. Can both patches somehow be squashed? Yeah, I'm happy to squash them. I separated them out based on feedback on the v2, but checking back I realized that I actually just misunderstood/misremembered what you and Mike were telling me. Sorry about that, they'll be squashed together in the next posting :) > -- > Cheers, > > David / dhildenb > Best, Patrick
- [PATCH v4 03/12] KVM: guest_memfd: Add flag to remove fr... Patrick Roy
- Re: [PATCH v4 03/12] KVM: guest_memfd: Add flag to ... David Hildenbrand
- Re: [PATCH v4 03/12] KVM: guest_memfd: Add flag... Patrick Roy
- Re: [PATCH v4 03/12] KVM: guest_memfd: Add ... David Hildenbrand
- Re: [PATCH v4 03/12] KVM: guest_memfd: ... Patrick Roy
- Re: [PATCH v4 03/12] KVM: guest_me... David Hildenbrand
- [PATCH v4 05/12] KVM: Documentation: document KVM_GMEM_N... Patrick Roy
- [PATCH v4 07/12] KVM: selftests: set KVM_MEM_GUEST_MEMFD... Patrick Roy
- [PATCH v4 02/12] mm/secretmem: set AS_NO_DIRECT_MAP inst... Patrick Roy
- Re: [PATCH v4 02/12] mm/secretmem: set AS_NO_DIRECT... David Hildenbrand
- Re: [PATCH v4 02/12] mm/secretmem: set AS_NO_DI... Patrick Roy
- [PATCH v4 08/12] KVM: selftests: Add guest_memfd based v... Patrick Roy
- [PATCH v4 09/12] KVM: selftests: stuff vm_mem_backing_sr... Patrick Roy
- [PATCH v4 11/12] KVM: selftests: set KVM_GMEM_NO_DIRECT_... Patrick Roy
- [PATCH v4 12/12] KVM: selftests: Test guest execution fr... Patrick Roy
- [PATCH v4 01/12] mm: introduce AS_NO_DIRECT_MAP Patrick Roy
- Re: [PATCH v4 01/12] mm: introduce AS_NO_DIRECT_MAP David Hildenbrand
- Re: [PATCH v4 01/12] mm: introduce AS_NO_DIRECT... Vlastimil Babka
- [PATCH v4 06/12] KVM: selftests: load elf via bounce buf... Patrick Roy
- [PATCH v4 10/12] KVM: selftests: adjust test_create_gues... Patrick Roy