projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb1b4e0
)
arm64: KVM: Implement HVC_GET_VECTORS in the init code
author
Marc Zyngier
<
[email protected]
>
Mon, 3 Apr 2017 18:37:41 +0000
(19:37 +0100)
committer
Christoffer Dall
<
[email protected]
>
Sun, 9 Apr 2017 14:49:21 +0000
(07:49 -0700)
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]
>
arch/arm64/kvm/hyp-init.S
patch
|
blob
|
history
diff --git
a/arch/arm64/kvm/hyp-init.S
b/arch/arm64/kvm/hyp-init.S
index 5e39ad53bcae2207d07e1ea7344a71fbb6c87abf..fded932ede1b2f2be24dd7542b568eecdcdeadcf 100644
(file)
--- a/
arch/arm64/kvm/hyp-init.S
+++ b/
arch/arm64/kvm/hyp-init.S
@@
-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.