From: Marc Zyngier Date: Mon, 3 Apr 2017 18:37:54 +0000 (+0100) Subject: ARM: KVM: Implement HVC_GET_VECTORS in the init code X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=5d224aa7d40f6dd79037fd0647eb9eb5e7aaa915;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ARM: KVM: Implement HVC_GET_VECTORS in the init code Now that we have an infrastructure to handle hypercalls in the KVM init code, let's implement HVC_GET_VECTORS there. Tested-by: Keerthy Acked-by: Russell King Acked-by: Catalin Marinas Signed-off-by: Marc Zyngier Signed-off-by: Christoffer Dall --- diff --git a/arch/arm/kvm/init.S b/arch/arm/kvm/init.S index 86a7008e75a3..d6b2f496fa13 100644 --- a/arch/arm/kvm/init.S +++ b/arch/arm/kvm/init.S @@ -122,7 +122,12 @@ __do_hyp_init: eret ENTRY(__kvm_handle_stub_hvc) - cmp r0, #HVC_RESET_VECTORS + cmp r0, #HVC_GET_VECTORS + bne 1f + mrc p15, 4, r0, c12, c0, 0 @ get HVBAR + b exit + +1: cmp r0, #HVC_RESET_VECTORS bne 1f ENTRY(__kvm_hyp_reset) /* We're now in idmap, disable MMU */