Re: [PATCH 1/5] KVM: arm64: Add accessor for per-CPU state

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On 3/2/24 03:19, Marc Zyngier wrote:
> 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.
> 
> Signed-off-by: Marc Zyngier <maz@xxxxxxxxxx>
> ---
>  arch/arm64/include/asm/kvm_host.h         | 13 +++++++++++++
>  arch/arm64/kvm/arm.c                      |  2 +-
>  arch/arm64/kvm/hyp/include/hyp/debug-sr.h |  4 ++--
>  arch/arm64/kvm/hyp/include/hyp/switch.h   | 11 +++++------
>  arch/arm64/kvm/hyp/nvhe/psci-relay.c      |  2 +-
>  arch/arm64/kvm/hyp/nvhe/setup.c           |  3 +--
>  arch/arm64/kvm/hyp/nvhe/switch.c          |  4 ++--
>  arch/arm64/kvm/hyp/vhe/switch.c           |  4 ++--
>  arch/arm64/kvm/hyp/vhe/sysreg-sr.c        |  4 ++--
>  arch/arm64/kvm/pmu.c                      |  2 +-
>  10 files changed, 30 insertions(+), 19 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
> index 21c57b812569..3ca2a9444f21 100644
> --- a/arch/arm64/include/asm/kvm_host.h
> +++ b/arch/arm64/include/asm/kvm_host.h
> @@ -492,6 +492,17 @@ struct kvm_cpu_context {
>  	u64 *vncr_array;
>  };
>  
> +/*
> + * This structure is instanciated on a per-CPU basis, and contains

instantiated?


May this patchset (at least the first, second, third and fifth) be qualified as
"non functional change" in the commit message?

That provides some hints when backporting this patchset to some old kernel in
the future. Thank you very much!

Dongli Zhang




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux