kvm: arm: don't treat unavailable HYP mode as an error
authorArd Biesheuvel <ard.biesheuvel@linaro.org>
Tue, 28 Nov 2017 15:18:19 +0000 (15:18 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 25 Feb 2018 10:07:55 +0000 (11:07 +0100)
commit49a3efa81147c088505baa35eca827c4df6d4c38
tree19de5db714dec4b496ad4de1feac21ea80a7e53f
parentc05bbe5dc862789cbbc809a4c6b4422d0b158adb
kvm: arm: don't treat unavailable HYP mode as an error

[ Upstream commit 58d0d19a204604ca0da26058828a53558b265da3 ]

Since it is perfectly legal to run the kernel at EL1, it is not
actually an error if HYP mode is not available when attempting to
initialize KVM, given that KVM support cannot be built as a module.
So demote the kvm_err() to kvm_info(), which prevents the error from
appearing on an otherwise 'quiet' console.

Acked-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
virt/kvm/arm/arm.c