提交 82529d9b 编写于 作者: M Marc Zyngier 提交者: Christoffer Dall

arm64: 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.
Acked-by: NCatalin Marinas <catalin.marinas@arm.com>
Reviewed-by: NJames Morse <james.morse@arm.com>
Signed-off-by: NMarc Zyngier <marc.zyngier@arm.com>
Signed-off-by: NChristoffer Dall <cdall@linaro.org>
上级 fb1b4e01
...@@ -124,7 +124,12 @@ __do_hyp_init: ...@@ -124,7 +124,12 @@ __do_hyp_init:
ENDPROC(__kvm_hyp_init) ENDPROC(__kvm_hyp_init)
ENTRY(__kvm_handle_stub_hvc) ENTRY(__kvm_handle_stub_hvc)
cmp x0, #HVC_RESET_VECTORS cmp x0, #HVC_GET_VECTORS
b.ne 1f
mrs x0, vbar_el2
b exit
1: cmp x0, #HVC_RESET_VECTORS
b.ne 1f b.ne 1f
/* /*
* Reset kvm back to the hyp stub. * Reset kvm back to the hyp stub.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册