[RFC PATCH v1 19/30] KVM: arm64: change calls of get_loaded_vcpu to get_loaded_vcpu_ctxt
Fuad Tabba
tabba at google.com
Fri Sep 24 05:53:48 PDT 2021
get_loaded_vcpu is used only as a NULL check.
get_loaded_vcpu_ctxt fills the same role and reduces the scope.
Signed-off-by: Fuad Tabba <tabba at google.com>
---
arch/arm64/kvm/hyp/entry.S | 4 ++--
arch/arm64/kvm/hyp/nvhe/host.S | 2 +-
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/arch/arm64/kvm/hyp/entry.S b/arch/arm64/kvm/hyp/entry.S
index 996bdc9555da..1804be5b7ead 100644
--- a/arch/arm64/kvm/hyp/entry.S
+++ b/arch/arm64/kvm/hyp/entry.S
@@ -81,10 +81,10 @@ alternative_else_nop_endif
SYM_INNER_LABEL(__guest_exit_panic, SYM_L_GLOBAL)
// x2-x29,lr: vcpu regs
- // vcpu x0-x1 on the stack
+ // vcpu ctxt x0-x1 on the stack
// If the hyp context is loaded, go straight to hyp_panic
- get_loaded_vcpu x0, x1
+ get_loaded_vcpu_ctxt x0, x1
cbnz x0, 1f
b hyp_panic
diff --git a/arch/arm64/kvm/hyp/nvhe/host.S b/arch/arm64/kvm/hyp/nvhe/host.S
index 2b23400e0fb3..7de2e8716f69 100644
--- a/arch/arm64/kvm/hyp/nvhe/host.S
+++ b/arch/arm64/kvm/hyp/nvhe/host.S
@@ -134,7 +134,7 @@ SYM_FUNC_END(__hyp_do_panic)
.align 7
/* If a guest is loaded, panic out of it. */
stp x0, x1, [sp, #-16]!
- get_loaded_vcpu x0, x1
+ get_loaded_vcpu_ctxt x0, x1
cbnz x0, __guest_exit_panic
add sp, sp, #16
--
2.33.0.685.g46640cef36-goog
More information about the linux-arm-kernel
mailing list