Commit 413b427
KVM: x86: Register Processor Trace interrupt hook iff PT enabled in guest
commit f4b027c upstream.
Override the Processor Trace (PT) interrupt handler for guest mode if and
only if PT is configured for host+guest mode, i.e. is being used
independently by both host and guest. If PT is configured for system
mode, the host fully controls PT and must handle all events.
Fixes: 8479e04 ("KVM: x86: Inject PMI for KVM guest")
Reported-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Reported-by: Artem Kashkanov <artem.kashkanov@intel.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Cc: stable@vger.kernel.org
Link: https://lore.kernel.org/r/20211111020738.2512932-4-seanjc@google.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>1 parent 723acd7 commit 413b427
3 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1306 | 1306 | | |
1307 | 1307 | | |
1308 | 1308 | | |
| 1309 | + | |
1309 | 1310 | | |
1310 | 1311 | | |
1311 | 1312 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7915 | 7915 | | |
7916 | 7916 | | |
7917 | 7917 | | |
| 7918 | + | |
7918 | 7919 | | |
7919 | 7920 | | |
7920 | 7921 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7882 | 7882 | | |
7883 | 7883 | | |
7884 | 7884 | | |
7885 | | - | |
| 7885 | + | |
7886 | 7886 | | |
7887 | 7887 | | |
7888 | 7888 | | |
| |||
8005 | 8005 | | |
8006 | 8006 | | |
8007 | 8007 | | |
| 8008 | + | |
| 8009 | + | |
8008 | 8010 | | |
8009 | 8011 | | |
8010 | 8012 | | |
| |||
8042 | 8044 | | |
8043 | 8045 | | |
8044 | 8046 | | |
| 8047 | + | |
8045 | 8048 | | |
8046 | 8049 | | |
8047 | 8050 | | |
| |||
0 commit comments