UPSTREAM: KVM: arm64: Save PSTATE early on exit
In order to be able to use primitives such as vcpu_mode_is_32bit(), we need to synchronize the guest PSTATE. However, this is currently done deep into the bowels of the world-switch code, and we do have helpers evaluating this much earlier (__vgic_v3_perform_cpuif_access and handle_aarch32_guest, for example). Move the saving of the guest pstate into the early fixups, which cures the first issue. The second one will be addressed separately. Tested-by:Fuad Tabba <tabba@google.com> Reviewed-by:
Fuad Tabba <tabba@google.com> Signed-off-by:
Marc Zyngier <maz@kernel.org> (cherry picked from commit 83bb2c1a) Bug: 204960018 Signed-off-by:
Will Deacon <willdeacon@google.com> Change-Id: Iddbe02a20d34c470651da59390fb7f76ba89ba4b
Loading
Please sign in to comment