summaryrefslogtreecommitdiffstats
path: root/virt
diff options
context:
space:
mode:
authorArd Biesheuvel <ard.biesheuvel@linaro.org>2017-11-28 10:18:19 -0500
committerChristoffer Dall <christoffer.dall@linaro.org>2017-11-29 12:17:48 -0500
commit58d0d19a204604ca0da26058828a53558b265da3 (patch)
treee7fceafbd6b60a1b9117c6ab741e63166f6306e5 /virt
parent22601127c0faa5db70ab88f23af11cb23c8f6cdf (diff)
kvm: arm: don't treat unavailable HYP mode as an error
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>
Diffstat (limited to 'virt')
-rw-r--r--virt/kvm/arm/arm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/virt/kvm/arm/arm.c b/virt/kvm/arm/arm.c
index 322c570d211e..ca65d06b38a8 100644
--- a/virt/kvm/arm/arm.c
+++ b/virt/kvm/arm/arm.c
@@ -1507,7 +1507,7 @@ int kvm_arch_init(void *opaque)
1507 bool in_hyp_mode; 1507 bool in_hyp_mode;
1508 1508
1509 if (!is_hyp_mode_available()) { 1509 if (!is_hyp_mode_available()) {
1510 kvm_err("HYP mode not available\n"); 1510 kvm_info("HYP mode not available\n");
1511 return -ENODEV; 1511 return -ENODEV;
1512 } 1512 }
1513 1513