]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86: Use kcalloc to allocate the mce_banks array.
authorJue Wang <juew@google.com>
Fri, 10 Jun 2022 17:11:31 +0000 (10:11 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:52:02 +0000 (04:52 -0400)
commit922e2f4ffa64788d794e154afb628b990eeffa3d
tree2659f8f099b1b63bf80914f64617d0284cb485c5
parent7dbdcb4e60227cc967aff55a37c4746582ef49d9
KVM: x86: Use kcalloc to allocate the mce_banks array.

This patch updates the allocation of mce_banks with the array allocation
API (kcalloc) as a precedent for the later mci_ctl2_banks to implement
per-bank control of Corrected Machine Check Interrupt (CMCI).

Suggested-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Jue Wang <juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20220610171134.772566-6-juew@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c