Thread (31 messages) flat view 31 messages, 4 authors, 2021-03-18

Re: [PATCH 01/10] KVM: arm64: Provide KVM's own save/restore SVE primitives

From: Marc Zyngier <maz@kernel.org>
Date: 2021-03-16 12:19:11
Also in: kvm, kvmarm

On Tue, 16 Mar 2021 10:31:46 +0000,
Quentin Perret [off-list ref] wrote:
On Tuesday 16 Mar 2021 at 10:13:03 (+0000), Marc Zyngier wrote:
quoted
diff --git a/arch/arm64/kvm/hyp/fpsimd.S b/arch/arm64/kvm/hyp/fpsimd.S
index 01f114aa47b0..e4010d1acb79 100644
--- a/arch/arm64/kvm/hyp/fpsimd.S
+++ b/arch/arm64/kvm/hyp/fpsimd.S
@@ -19,3 +19,13 @@ SYM_FUNC_START(__fpsimd_restore_state)
 	fpsimd_restore	x0, 1
 	ret
 SYM_FUNC_END(__fpsimd_restore_state)
+
+SYM_FUNC_START(__sve_restore_state)
+	sve_load 0, x1, x2, 3, x4
+	ret
+SYM_FUNC_END(__sve_restore_state)
Nit: maybe this could be named __sve_load_state() for consistency with
the EL1 version?
Well, we already have the discrepancy for fpsimd in the same file, so
I opted for another kind of consistency...
quoted
+SYM_FUNC_START(__sve_save_state)
+	sve_save 0, x1, 2
+	ret
+SYM_FUNC_END(__sve_restore_state)
SYM_FUNC_END(__sve_save_state) here?
Yup, good catch.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help