]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
KVM: arm64: Remove KVM_ARM_VCPU_POWER_OFF from protected VMs allowed features in...
authorFuad Tabba <tabba@google.com>
Mon, 16 Dec 2024 10:50:44 +0000 (10:50 +0000)
committerMarc Zyngier <maz@kernel.org>
Fri, 20 Dec 2024 13:45:25 +0000 (13:45 +0000)
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>
arch/arm64/kvm/hyp/nvhe/pkvm.c

index 6a39f68563ae91e2a5e3b242c74f8f7cdcd4d1e3..d7ca7e9ccea2ee5638da1ad6dc033c1b3f201489 100644 (file)
@@ -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);
 
        /*