diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-17 17:13:50 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-26 07:44:25 +0000 |
| commit | 121d74bee8cd81ce9212837db98ceaef2e530637 (patch) | |
| tree | 1470df0b0068613b59a2c2732acafdf659bbefbd /scripts/basic | |
| parent | ecb6b43cd22245296d910cb392594c9e33691b87 (diff) | |
| download | linux-121d74bee8cd81ce9212837db98ceaef2e530637.tar.gz linux-121d74bee8cd81ce9212837db98ceaef2e530637.zip | |
KVM: arm64: Reject the stage-2 flush hypercalls under pKVM
The stage-2 TLB and context flush hypercalls remain callable once pKVM
has finalised, and five of the six dereference a host-supplied
struct kvm_s2_mmu pointer. Under pKVM none has a valid caller: the host
walks no guest stage-2, its TLB flushes go through the handle-based
__pkvm_tlb_flush_vmid, and kvm_arch_vcpu_load() skips both the VMID
update and the CPU context flush.
Move them into the band the dispatcher rejects once pKVM has finalised.
[maz: Dropped cosmetic hyp-main.c changes]
Reported-by: Sashiko <sashiko-bot@kernel.org>
Closes: https://lore.kernel.org/all/20260914130152.F0D5F1F000FF@smtp.kernel.org/
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261012161524.4016464-3-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'scripts/basic')
0 files changed, 0 insertions, 0 deletions
