Skip to content

Commit

Permalink
arm64: KVM: Implement HVC_GET_VECTORS in the init code
Browse files Browse the repository at this point in the history
Now that we have an infrastructure to handle hypercalls in the KVM
init code, let's implement HVC_GET_VECTORS there.

Acked-by: Catalin Marinas <[email protected]>
Reviewed-by: James Morse <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
  • Loading branch information
Marc Zyngier authored and Christoffer Dall committed Apr 9, 2017
1 parent fb1b4e0 commit 82529d9
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm64/kvm/hyp-init.S
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,12 @@ __do_hyp_init:
ENDPROC(__kvm_hyp_init)

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
/*
* Reset kvm back to the hyp stub.
Expand Down

0 comments on commit 82529d9

Please sign in to comment.