summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuad Tabba <tabba@google.com>2024-12-16 13:50:44 +0300
committerMarc Zyngier <maz@kernel.org>2024-12-20 16:45:25 +0300
commit27f5cf8ad5224033a711aef3fde90b60c9a8d7d5 (patch)
tree26b4eb32981c990d88cd4b69d6750479c8c19807
parent1fea164ccf19750c5bea688afd9122eb84eb3a72 (diff)
downloadlinux-27f5cf8ad5224033a711aef3fde90b60c9a8d7d5.tar.xz
KVM: arm64: Remove KVM_ARM_VCPU_POWER_OFF from protected VMs allowed features in pKVM
The hypervisor is responsible for the power state of protected VMs in pKVM. Therefore, remove KVM_ARM_VCPU_POWER_OFF from the list of allowed features for protected VMs. Signed-off-by: Fuad Tabba <tabba@google.com> Link: https://lore.kernel.org/r/20241216105057.579031-5-tabba@google.com Signed-off-by: Marc Zyngier <maz@kernel.org>
-rw-r--r--arch/arm64/kvm/hyp/nvhe/pkvm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/pkvm.c b/arch/arm64/kvm/hyp/nvhe/pkvm.c
index 6a39f68563ae..d7ca7e9ccea2 100644
--- a/arch/arm64/kvm/hyp/nvhe/pkvm.c
+++ b/arch/arm64/kvm/hyp/nvhe/pkvm.c
@@ -331,10 +331,8 @@ static void pkvm_init_features_from_host(struct pkvm_hyp_vm *hyp_vm, const struc
/*
* For protected VMs, always allow:
- * - CPU starting in poweroff state
* - PSCI v0.2
*/
- set_bit(KVM_ARM_VCPU_POWER_OFF, allowed_features);
set_bit(KVM_ARM_VCPU_PSCI_0_2, allowed_features);
/*