diff options
author | Sean Christopherson <seanjc@google.com> | 2025-03-14 19:41:02 -0700 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2025-04-04 07:07:40 -0400 |
commit | bc52ae0a708cb6fa3926d11c88e3c55e1171b4a1 (patch) | |
tree | dab9abc8ab78ef2f0bb078dea9b74e875af3c1ec /tools/testing/selftests/kvm | |
parent | 459a35111b0a890172a78d51c01b204e13a34a18 (diff) |
KVM: x86: Explicitly zero-initialize on-stack CPUID unions
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@google.com>
Reviewed-by: Jim Mattson <jmattson@google.com>
Message-ID: <20250315024102.2361628-1-seanjc@google.com>
Cc: stable@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests/kvm')
0 files changed, 0 insertions, 0 deletions