diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-28 15:31:52 +0000 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-11-03 11:31:37 +0000 |
| commit | a7dd36f7e381025bdf01d8665bf37167368754c4 (patch) | |
| tree | 70cd8347b13bf68b0ad5a67736a8f4663a410f4b /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 8ee90ca40b10cc040544fdccf24b20115f46aa7d (diff) | |
KVM: arm64: Disable host PMU counters for protected guests
A protected guest has no PMU, and EL2 clears MDCR_EL2.HPME for it.
However, __pkvm_vcpu_load() sets HPMN to cover every event counter, so
HPME has no effect and the counters the host has enabled keep counting
the guest.
Clear PMCR_EL0.E in the world switch while a protected guest runs, which
stops them all. Gate this on system_supports_pmuv3(), as
__activate_traps_common() does for PMUSERENR_EL0.
Side channels are outside pKVM's threat model, so this is hardening
rather than a fix.
Reported-by: Oculytic <oculytic@gmail.com>
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261028153152.1740044-4-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions
