Commit f4b027c
KVM: x86: Register Processor Trace interrupt hook iff PT enabled in guest
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.com1 parent 5c7df80 commit f4b027c
3 files changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1516 | 1516 | | |
1517 | 1517 | | |
1518 | 1518 | | |
| 1519 | + | |
1519 | 1520 | | |
1520 | 1521 | | |
1521 | 1522 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7865 | 7865 | | |
7866 | 7866 | | |
7867 | 7867 | | |
| 7868 | + | |
7868 | 7869 | | |
7869 | 7870 | | |
7870 | 7871 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8510 | 8510 | | |
8511 | 8511 | | |
8512 | 8512 | | |
8513 | | - | |
| 8513 | + | |
8514 | 8514 | | |
8515 | 8515 | | |
8516 | 8516 | | |
| |||
11222 | 11222 | | |
11223 | 11223 | | |
11224 | 11224 | | |
| 11225 | + | |
| 11226 | + | |
11225 | 11227 | | |
11226 | 11228 | | |
11227 | 11229 | | |
| |||
11252 | 11254 | | |
11253 | 11255 | | |
11254 | 11256 | | |
| 11257 | + | |
11255 | 11258 | | |
11256 | 11259 | | |
11257 | 11260 | | |
| |||
0 commit comments