diff options
author | 2021-03-11 18:29:55 +0000 | |
---|---|---|
committer | 2021-03-18 14:23:12 +0000 | |
commit | 8c8010d69c1322734a272eb95dbbf42b5190e565 (patch) | |
tree | b67366c7598da31074f57b7de4e569fff294dde7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | KVM: arm64: Trap host SVE accesses when the FPSIMD state is dirty (diff) | |
download | linux-dev-8c8010d69c1322734a272eb95dbbf42b5190e565.tar.xz linux-dev-8c8010d69c1322734a272eb95dbbf42b5190e565.zip |
KVM: arm64: Save/restore SVE state for nVHE
Implement the SVE save/restore for nVHE, following a similar
logic to that of the VHE implementation:
- the SVE state is switched on trap from EL1 to EL2
- no further changes to ZCR_EL2 occur as long as the guest isn't
preempted or exit to userspace
- ZCR_EL2 is reset to its default value on the first SVE access from
the host EL1, and ZCR_EL1 restored to the default guest value in
vcpu_put()
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions