diff options
author | Robin Luk <lubin.lu@antgroup.com> | 2021-01-14 19:06:46 +0800 |
---|---|---|
committer | Robin Luk <lubin.lu@antgroup.com> | 2021-02-03 11:50:36 +0000 |
commit | 6eb80b2e2df4a7e0a0b9dcfc99906a84fd8fc3f0 (patch) | |
tree | 4b04266e0608caf4c661b56d4ef7cb7731ba334d /pkg/ring0/defs_arm64.go | |
parent | 25130d6183d399fc3bfa93385aeba6819437ea6c (diff) |
arm64 kvm:implement basic lazy save and restore for FPSIMD registers
Implement basic lazy save and restore for FPSIMD registers, which only
restore FPSIMD state on el0_fpsimd_acc and save FPSIMD state in switch().
Signed-off-by: Robin Luk <lubin.lu@antgroup.com>
Diffstat (limited to 'pkg/ring0/defs_arm64.go')
-rw-r--r-- | pkg/ring0/defs_arm64.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/pkg/ring0/defs_arm64.go b/pkg/ring0/defs_arm64.go index 4b2375b71..c372b02bb 100644 --- a/pkg/ring0/defs_arm64.go +++ b/pkg/ring0/defs_arm64.go @@ -55,6 +55,9 @@ type CPUArchState struct { // faultAddr is the value of far_el1. faultAddr uintptr + // el0Fp is the address of application's fpstate. + el0Fp uintptr + // ttbr0Kvm is the value of ttbr0_el1 for sentry. ttbr0Kvm uintptr |