Skip to content

Commit 27f5cf8

Browse files
Fuad TabbaMarc Zyngier
authored andcommitted
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Marc Zyngier <[email protected]>
1 parent 1fea164 commit 27f5cf8

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/arm64/kvm/hyp/nvhe/pkvm.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -331,10 +331,8 @@ static void pkvm_init_features_from_host(struct pkvm_hyp_vm *hyp_vm, const struc
331331

332332
/*
333333
* For protected VMs, always allow:
334-
* - CPU starting in poweroff state
335334
* - PSCI v0.2
336335
*/
337-
set_bit(KVM_ARM_VCPU_POWER_OFF, allowed_features);
338336
set_bit(KVM_ARM_VCPU_PSCI_0_2, allowed_features);
339337

340338
/*

0 commit comments

Comments
 (0)