]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
KVM: x86: add missing "depends on KVM"
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Jan 2024 12:51:26 +0000 (07:51 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 8 Jan 2024 13:09:38 +0000 (08:09 -0500)
Support for KVM software-protected VMs should not be configurable,
if KVM is not available at all.

Fixes: 89ea60c2c7b5 ("KVM: x86: Add support for "protected VMs" that can utilize private memory")
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/Kconfig

index cce3dea279206c6b49ad282741d31cb26a4e5da1..10c56603cc060db1269eba8b253c0b9eb9288191 100644 (file)
@@ -77,7 +77,7 @@ config KVM_WERROR
 config KVM_SW_PROTECTED_VM
        bool "Enable support for KVM software-protected VMs"
        depends on EXPERT
-       depends on X86_64
+       depends on KVM && X86_64
        select KVM_GENERIC_PRIVATE_MEM
        help
          Enable support for KVM software-protected VMs.  Currently "protected"