summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2023-09-25 17:34:47 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-10-25 11:16:42 +0200
commit79f52485a0aa4019525c411a8d4fa4df2ae95121 (patch)
tree738b6760843bc34c18b8c11aa086172d50821584 /include
parent7219c6b8fa24ec55a19d7a5ea58fb09151e37950 (diff)
KVM: x86: Mask LVTPC when handling a PMI
commit a16eb25b09c02a54c1c1b449d4b6cfa2cf3f013a upstream. Per the SDM, "When the local APIC handles a performance-monitoring counters interrupt, it automatically sets the mask flag in the LVT performance counter register." Add this behavior to KVM's local APIC emulation. Failure to mask the LVTPC entry results in spurious PMIs, e.g. when running Linux as a guest, PMI handlers that do a "late_ack" spew a large number of "dazed and confused" spurious NMI warnings. Fixes: f5132b01386b ("KVM: Expose a version 2 architectural PMU to a guests") Cc: stable@vger.kernel.org Signed-off-by: Jim Mattson <jmattson@google.com> Tested-by: Mingwei Zhang <mizhang@google.com> Signed-off-by: Mingwei Zhang <mizhang@google.com> Link: https://lore.kernel.org/r/20230925173448.3518223-3-mizhang@google.com [sean: massage changelog, correct Fixes] Signed-off-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions