aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2022-07-08 15:38:51 -0700
committerSean Christopherson <[email protected]>2022-07-08 15:55:28 -0700
commit03d84f96890662681feee129cf92491f49247d28 (patch)
tree9a7db1b22c2c701b8ffb6ba293a09b02aa0d00dd /tools/perf/scripts/python/bin/stackcollapse-record
parent4a627b0b162b9495f3646caa6edb0e0f97d8f2de (diff)
KVM: x86: Initialize number of APIC LVT entries during APIC creation
Initialize the number of LVT entries during APIC creation, else the field will be incorrectly left '0' if userspace never invokes KVM_X86_SETUP_MCE. Add and use a helper to calculate the number of entries even though MCG_CMCI_P is not set by default in vcpu->arch.mcg_cap. Relying on that to always be true is unnecessarily risky, and subtle/confusing as well. Fixes: 4b903561ec49 ("KVM: x86: Add Corrected Machine Check Interrupt (CMCI) emulation to lapic.") Reported-by: Xiaoyao Li <[email protected]> Cc: Jue Wang <[email protected]> Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions