Re: [RFC PATCH] KVM: x86: Dynamically allocate bitmap to fix -Wframe-larger-than error

From: Sean Christopherson
Date: Tue Jun 24 2025 - 15:37:25 EST


On Fri, Jun 13, 2025, Sean Christopherson wrote:
> Use a preallocated per-vCPU bitmap for tracking the unpacked set of vCPUs
> being targeted for Hyper-V's paravirt TLB flushing. If KVM_MAX_NR_VCPUS
> is set to 4096 (which is allowed even for MAXSMP=n builds), putting the
> vCPU mask on-stack pushes kvm_hv_flush_tlb() past the default FRAME_WARN
> limit.
>
> [...]

Applied my version to kvm-x86 fixes, thanks!

[1/1] KVM: x86/hyper-v: Use preallocated per-vCPU buffer for de-sparsified vCPU masks
https://github.com/kvm-x86/linux/commit/4bbcc07a56e6

--
https://github.com/kvm-x86/kvm-unit-tests/tree/next