diff options
| author | Fuad Tabba <fuad.tabba@linux.dev> | 2026-10-01 14:57:04 +0100 |
|---|---|---|
| committer | Marc Zyngier <maz@kernel.org> | 2026-10-02 15:22:39 +0100 |
| commit | 0b7d843ef3bf0a791d9e92c8a85178fe2a5ee9ff (patch) | |
| tree | ee3692672c0b09a73eb5cec61145205615eaef32 /tools/perf/scripts/python | |
| parent | 9d4ec80be2eb4745d877c6989f1e59c62a2e4da4 (diff) | |
KVM: arm64: Restrict KVM_ARM_VCPU_INIT and PSCI version for protected VMs
EL2 masks a protected VM's vCPU features down to the set pKVM allows,
so a KVM_ARM_VCPU_INIT that requests more succeeds and produces a
guest without them. Reject such an init with -EINVAL. The host and
EL2 both take the allowed set from kvm_pkvm_vcpu_allowed_features().
EL2 returns 1.1 for a protected guest's PSCI_VERSION whatever the
host is configured for, and forwards the platform calls to the host.
Require KVM_ARM_VCPU_PSCI_0_2: without it the host dispatches the
forwarded calls as PSCI 0.1. Reject a KVM_REG_ARM_PSCI_VERSION write
below 1.1: below it the host rejects the SYSTEM_RESET2 that EL2
advertises.
Signed-off-by: Fuad Tabba <fuad.tabba@linux.dev>
Link: https://patch.msgid.link/20261001135711.1640520-12-fuad.tabba@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
