Skip to content

Commit

Permalink
kvm: arm: don't treat unavailable HYP mode as an error
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Christoffer Dall <[email protected]>
Signed-off-by: Ard Biesheuvel <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
Ard Biesheuvel authored and chazy committed Nov 29, 2017
1 parent 2260112 commit 58d0d19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion virt/kvm/arm/arm.c
Original file line number Diff line number Diff line change
Expand Up @@ -1507,7 +1507,7 @@ int kvm_arch_init(void *opaque)
bool in_hyp_mode;

if (!is_hyp_mode_available()) {
kvm_err("HYP mode not available\n");
kvm_info("HYP mode not available\n");
return -ENODEV;
}

Expand Down

0 comments on commit 58d0d19

Please sign in to comment.