Commit 189ecdb
committed
KVM: x86: Snapshot the host's DEBUGCTL after disabling IRQs
Snapshot the host's DEBUGCTL after disabling IRQs, as perf can toggle
debugctl bits from IRQ context, e.g. when enabling/disabling events via
smp_call_function_single(). Taking the snapshot (long) before IRQs are
disabled could result in KVM effectively clobbering DEBUGCTL due to using
a stale snapshot.
Cc: stable@vger.kernel.org
Reviewed-and-tested-by: Ravi Bangoria <ravi.bangoria@amd.com>
Link: https://lore.kernel.org/r/20250227222411.3490595-6-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>1 parent 4332658 commit 189ecdb
1 file changed
Lines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4968 | 4968 | | |
4969 | 4969 | | |
4970 | 4970 | | |
4971 | | - | |
4972 | 4971 | | |
4973 | 4972 | | |
4974 | 4973 | | |
| |||
10969 | 10968 | | |
10970 | 10969 | | |
10971 | 10970 | | |
| 10971 | + | |
| 10972 | + | |
10972 | 10973 | | |
10973 | 10974 | | |
10974 | 10975 | | |
| |||
0 commit comments