OSDN Git Service

KVM: arm64: Let vcpu_sve_pffr() handle HYP VAs
authorMarc Zyngier <maz@kernel.org>
Thu, 11 Mar 2021 19:18:42 +0000 (19:18 +0000)
committerMarc Zyngier <maz@kernel.org>
Thu, 18 Mar 2021 11:24:00 +0000 (11:24 +0000)
commit985d3a1beab543875e0c857ce263cad8233923bb
tree82b8878916891e983ebe96d5d0e0ea3f8e069d5b
parent83857371d4cbeff8551fa770e045be9c6b04715c
KVM: arm64: Let vcpu_sve_pffr() handle HYP VAs

The vcpu_sve_pffr() returns a pointer, which can be an interesting
thing to do on nVHE. Wrap the pointer with kern_hyp_va(), and
take this opportunity to remove the unnecessary casts (sve_state
being a void *).

Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h