Re: [PATCH v3 06/11] kvm: arm64: Add helpers for accessing nVHE hyp per-cpu vars

2020-09-18 Thread Will Deacon
On Wed, Sep 16, 2020 at 06:34:34PM +0100, David Brazdil wrote: > Defining a per-CPU variable in hyp/nvhe will result in its name being > prefixed with __kvm_nvhe_. Add helpers for declaring these variables > in kernel proper and accessing them with this_cpu_ptr and per_cpu_ptr. > > Signed-off-by:

[PATCH v3 06/11] kvm: arm64: Add helpers for accessing nVHE hyp per-cpu vars

2020-09-16 Thread David Brazdil
Defining a per-CPU variable in hyp/nvhe will result in its name being prefixed with __kvm_nvhe_. Add helpers for declaring these variables in kernel proper and accessing them with this_cpu_ptr and per_cpu_ptr. Signed-off-by: David Brazdil --- arch/arm64/include/asm/kvm_asm.h | 25 +++