Re: [PATCH] KVM: x86: Explicitly zero-initialize on-stack CPUID unions
From: Jim Mattson
Date: Sat Mar 15 2025 - 04:59:36 EST
On Fri, Mar 14, 2025 at 7:41 PM Sean Christopherson <seanjc@xxxxxxxxxx> wrote:
>
> Explicitly zero/empty-initialize the unions used for PMU related CPUID
> entries, instead of manually zeroing all fields (hopefully), or in the
> case of 0x80000022, relying on the compiler to clobber the uninitialized
> bitfields.
>
> Signed-off-by: Sean Christopherson <seanjc@xxxxxxxxxx>
Reviewed-by: Jim Mattson <jmattson@xxxxxxxxxx>