linux/virt/kvm
Zeng Chi 119e9db233 KVM: Don't pre-reserve xarray entries when storing empty/NULL attributes
Skip the xarray reservation loop when clearing all memory attributes, as
storing NULL only erases the entry and never needs to allocate, so no
reservation (and no cleanup of a failed one) is required in that case.

Suggested-by: Sean Christopherson <seanjc@google.com>
Cc: David Ballesteros <davimaba.v@proton.me>
Signed-off-by: Zeng Chi <zengchi@kylinos.cn>
Link: https://patch.msgid.link/20260921102442.1232375-1-zeng_chi911@163.com
[sean: split to separate patch]
Signed-off-by: Sean Christopherson <seanjc@google.com>
2026-09-22 08:36:16 -07:00
..
async_pf.c KVM: remove redundant __GFP_NOWARN 2025-08-19 11:51:13 -07:00
async_pf.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 504 2019-06-19 17:09:56 +02:00
binary_stats.c KVM: Remove subtle "struct kvm_stats_desc" pseudo-overlay 2026-01-08 10:40:48 -08:00
coalesced_mmio.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
coalesced_mmio.h
dirty_ring.c KVM: Reject wrapped offset in kvm_reset_dirty_gfn() 2026-05-12 22:16:16 +02:00
eventfd.c KVM: Replace guest-triggerable BUG_ON() in ioeventfd datamatch with get_unaligned() 2026-06-24 11:25:14 +02:00
guest_memfd.c Arm: 2026-08-25 11:48:04 -07:00
guest_memfd.h KVM: guest_memfd: Move gmem function declarations to dedicated guest_memfd.h 2026-08-05 10:00:53 -07:00
irqchip.c treewide: Replace kmalloc with kmalloc_obj for non-scalar types 2026-02-21 01:02:28 -08:00
Kconfig KVM: guest_memfd: Rename prepare() hook and Kconfig to make_private() / CONVERT 2026-07-27 09:42:42 -07:00
kvm_main.c KVM: Don't pre-reserve xarray entries when storing empty/NULL attributes 2026-09-22 08:36:16 -07:00
kvm_mm.h KVM: guest_memfd: Move gmem function declarations to dedicated guest_memfd.h 2026-08-05 10:00:53 -07:00
Makefile.kvm KVM: Rename CONFIG_KVM_PRIVATE_MEM to CONFIG_KVM_GUEST_MEMFD 2025-08-27 04:34:59 -04:00
pfncache.c KVM: pfncache: Precisely track refcounted pages 2024-10-25 12:57:59 -04:00
vfio.c KVM: VFIO: update coherency only if file was deleted 2026-05-13 11:12:40 -07:00
vfio.h