OSDN Git Service

KVM: arm64: Convert lazy FPSIMD context switch trap to C
authorDave Martin <Dave.Martin@arm.com>
Fri, 16 Feb 2018 16:35:32 +0000 (16:35 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:27:54 +0000 (12:27 +0100)
commitceda9fff70e8b5939fa8882d1c497e55472a727f
tree67d449c83a20bb16fdc06a3f29854b8f54bf4d5e
parentbd2a6394fd2d3ea528d4b9c67f829e35f1f5d5dd
KVM: arm64: Convert lazy FPSIMD context switch trap to C

To make the lazy FPSIMD context switch trap code easier to hack on,
this patch converts it to C.

This is not amazingly efficient, but the trap should typically only
be taken once per host context switch.

Signed-off-by: Dave Martin <Dave.Martin@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/kvm/hyp/entry.S
arch/arm64/kvm/hyp/switch.c