commit | fc25dd856cfe1c03d0bbf27ff4c70aebd58df5a4 | [log] [tgz] |
---|---|---|
author | Fuad Tabba <tabba@google.com> | Mon Mar 11 10:51:17 2024 +0000 |
committer | Fuad Tabba <tabba@google.com> | Fri Apr 12 15:20:12 2024 +0100 |
tree | ca1dd84e1361e5b74033d88b8109fecd66b0df30 | |
parent | 415437988ea4150442c7c6510fa8004ba56275ff [diff] |
KVM: arm64: Use active guest SVE vector length on guest restore On restoring guest SVE state, use the guest's current active vector length. This reduces the amount of restoring for the cases where the maximum size isn't used. Moreover, it fixes a bug where the ZCR_EL2 value wasn't being set when restoring the guest state, potentially corrupting it. Fixes: 52029198c1ce ("KVM: arm64: Rework SVE host-save/guest-restore") Signed-off-by: Fuad Tabba <tabba@google.com>