diff options
author | Ard Biesheuvel <ard.biesheuvel@linaro.org> | 2019-12-06 14:13:39 -0800 |
---|---|---|
committer | Will Deacon <will@kernel.org> | 2020-01-16 17:32:56 +0000 |
commit | af12376814a5d8d2fa1c86eaa3adacf9dee2102e (patch) | |
tree | 6adf79d685575444f258a86e655f453b6c880268 /Documentation/x86 | |
parent | 7f153ccb9bb4c83a62cce8d034012698f68a3b4c (diff) | |
download | linux-af12376814a5d8d2fa1c86eaa3adacf9dee2102e.tar.gz |
arm64: kvm: stop treating register x18 as caller save
In preparation of reserving x18, stop treating it as caller save in
the KVM guest entry/exit code. Currently, the code assumes there is
no need to preserve it for the host, given that it would have been
assumed clobbered anyway by the function call to __guest_enter().
Instead, preserve its value and restore it upon return.
Link: https://patchwork.kernel.org/patch/9836891/
Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org>
[Sami: updated commit message, switched from x18 to x29 for the guest context]
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Reviewed-by: Kees Cook <keescook@chromium.org>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Mark Rutland <mark.rutland@arm.com>
Signed-off-by: Will Deacon <will@kernel.org>
Diffstat (limited to 'Documentation/x86')
0 files changed, 0 insertions, 0 deletions