diff options
| author | Marc Zyngier <[email protected]> | 2018-08-23 10:51:43 +0000 |
|---|---|---|
| committer | Christoffer Dall <[email protected]> | 2018-09-07 13:05:50 +0000 |
| commit | 7d14919c0d475a795c0127631ac8ecb2b0f31831 (patch) | |
| tree | 84f8fac05bacd87e4e448acec0562305c927fbc0 /tools/perf/scripts/python/syscall-counts.py | |
| parent | KVM: arm/arm64: Clean dcache to PoC when changing PTE due to CoW (diff) | |
| download | kernel-7d14919c0d475a795c0127631ac8ecb2b0f31831.tar.gz kernel-7d14919c0d475a795c0127631ac8ecb2b0f31831.zip | |
arm64: KVM: Only force FPEXC32_EL2.EN if trapping FPSIMD
If trapping FPSIMD in the context of an AArch32 guest, it is critical
to set FPEXC32_EL2.EN to 1 so that the trapping is taken to EL2 and
not EL1.
Conversely, it is just as critical *not* to set FPEXC32_EL2.EN to 1
if we're not going to trap FPSIMD, as we then corrupt the existing
VFP state.
Moving the call to __activate_traps_fpsimd32 to the point where we
know for sure that we are going to trap ensures that we don't set that
bit spuriously.
Fixes: e6b673b741ea ("KVM: arm64: Optimise FPSIMD handling to reduce guest/host thrashing")
Cc: [email protected] # v4.18
Cc: Dave Martin <[email protected]>
Reported-by: Alexander Graf <[email protected]>
Tested-by: Alexander Graf <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Signed-off-by: Christoffer Dall <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions
