diff options
| author | Sean Christopherson <[email protected]> | 2022-07-08 15:48:10 -0700 |
|---|---|---|
| committer | Sean Christopherson <[email protected]> | 2022-07-08 15:58:16 -0700 |
| commit | f83894b24c2a96fcecdff4858755aa79eb756465 (patch) | |
| tree | 32da1e5dc0c630afb77a239d695eb52966c67f3a /tools/perf/scripts/python/bin | |
| parent | 03d84f96890662681feee129cf92491f49247d28 (diff) | |
KVM: x86: Fix handling of APIC LVT updates when userspace changes MCG_CAP
Add a helper to update KVM's in-kernel local APIC in response to MCG_CAP
being changed by userspace to fix multiple bugs. First and foremost,
KVM needs to check that there's an in-kernel APIC prior to dereferencing
vcpu->arch.apic. Beyond that, any "new" LVT entries need to be masked,
and the APIC version register needs to be updated as it reports out the
number of LVT entries.
Fixes: 4b903561ec49 ("KVM: x86: Add Corrected Machine Check Interrupt (CMCI) emulation to lapic.")
Reported-by: [email protected]
Cc: Siddh Raman Pant <[email protected]>
Cc: Jue Wang <[email protected]>
Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions