• Geoff Levand's avatar
    arm/kvm: Cleanup KVM_ARM_MAX_VCPUS logic · f2dda9d8
    Geoff Levand authored
    Commit d21a1c83 (ARM: KVM: define KVM_ARM_MAX_VCPUS
    unconditionally) changed the Kconfig logic for KVM_ARM_MAX_VCPUS to work around a
    build error arising from the use of KVM_ARM_MAX_VCPUS when CONFIG_KVM=n.  The
    resulting Kconfig logic is a bit awkward and leaves a KVM_ARM_MAX_VCPUS always
    defined in the kernel config file.
    
    This change reverts the Kconfig logic back and adds a simple preprocessor
    conditional in kvm_host.h to handle when CONFIG_KVM_ARM_MAX_VCPUS is undefined.
    Signed-off-by: default avatarGeoff Levand <geoff@infradead.org>
    Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
    f2dda9d8
kvm_host.h 6.28 KB