diff options
author | Marc Zyngier <marc.zyngier@arm.com> | 2017-04-03 14:37:37 -0400 |
---|---|---|
committer | Christoffer Dall <cdall@linaro.org> | 2017-04-09 10:49:19 -0400 |
commit | 4993fdcf399f59ed56a16ecfedf8a61066198816 (patch) | |
tree | 7a8779155a6d2e6fdcbcb67c3558fbca34b926b1 /arch/arm64/kernel | |
parent | 9bae3ae513015eea9534cc2c2b6f7e405abad71a (diff) |
arm64: hyp-stub: Define a return value for failed stub calls
Define a standard return value to be returned when a hyp stub
call fails, and make KVM use it for ARM_EXCEPTION_HYP_GONE
(instead of using a KVM-specific value).
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
Diffstat (limited to 'arch/arm64/kernel')
-rw-r--r-- | arch/arm64/kernel/hyp-stub.S | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kernel/hyp-stub.S b/arch/arm64/kernel/hyp-stub.S index 193dfb25ce2f..f53e8b84cd3a 100644 --- a/arch/arm64/kernel/hyp-stub.S +++ b/arch/arm64/kernel/hyp-stub.S | |||
@@ -74,7 +74,7 @@ el1_sync: | |||
74 | br x4 // no return | 74 | br x4 // no return |
75 | 75 | ||
76 | /* Someone called kvm_call_hyp() against the hyp-stub... */ | 76 | /* Someone called kvm_call_hyp() against the hyp-stub... */ |
77 | 3: mov x0, #ARM_EXCEPTION_HYP_GONE | 77 | 3: ldr x0, =HVC_STUB_ERR |
78 | 78 | ||
79 | 9: eret | 79 | 9: eret |
80 | ENDPROC(el1_sync) | 80 | ENDPROC(el1_sync) |