Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 58d0d19a authored by Ard Biesheuvel's avatar Ard Biesheuvel Committed by Christoffer Dall
Browse files

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: default avatarMarc Zyngier <marc.zyngier@arm.com>
Acked-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: default avatarArd Biesheuvel <ard.biesheuvel@linaro.org>
Signed-off-by: default avatarChristoffer Dall <christoffer.dall@linaro.org>
parent 22601127
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
	}