diff options
author | Marc Zyngier <maz@kernel.org> | 2024-03-01 14:16:56 +0300 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2024-04-12 15:57:30 +0300 |
commit | 87f842c6c6543cf0dd66161fdf4b62cec804479b (patch) | |
tree | 072f7284996f7dbd2f86205c908baf8aae53dd09 /arch/arm64/kvm/hyp/nvhe/psci-relay.c | |
parent | 4cece764965020c22cff7665b18a012006359095 (diff) | |
download | linux-87f842c6c6543cf0dd66161fdf4b62cec804479b.tar.xz |
KVM: arm64: Add accessor for per-CPU state
In order to facilitate the introduction of new per-CPU state,
add a new host_data_ptr() helped that hides some of the per-CPU
verbosity, and make it easier to move that state around in the
future.
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'arch/arm64/kvm/hyp/nvhe/psci-relay.c')
-rw-r--r-- | arch/arm64/kvm/hyp/nvhe/psci-relay.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/psci-relay.c b/arch/arm64/kvm/hyp/nvhe/psci-relay.c index d57bcb6ab94d..dfe8fe0f7eaf 100644 --- a/arch/arm64/kvm/hyp/nvhe/psci-relay.c +++ b/arch/arm64/kvm/hyp/nvhe/psci-relay.c @@ -205,7 +205,7 @@ asmlinkage void __noreturn __kvm_host_psci_cpu_entry(bool is_cpu_on) struct psci_boot_args *boot_args; struct kvm_cpu_context *host_ctxt; - host_ctxt = &this_cpu_ptr(&kvm_host_data)->host_ctxt; + host_ctxt = host_data_ptr(host_ctxt); if (is_cpu_on) boot_args = this_cpu_ptr(&cpu_on_args); |