Files
linux/virt
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 <[email protected]>
Cc: David Ballesteros <[email protected]>
Signed-off-by: Zeng Chi <[email protected]>
Link: https://patch.msgid.link/[email protected]
[sean: split to separate patch]
Signed-off-by: Sean Christopherson <[email protected]>
2026-09-22 08:36:16 -07:00
..