linux/arch/arm64
Marc Zyngier 2b12c89527 KVM: arm64: Save PSTATE early on exit
[ Upstream commit 83bb2c1a01 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
History 2021-12-17 10:30:14 +01:00
..
boot arm64: dts: qcom: Fix node name of rpm-msg-ram device nodes 2021-11-25 09:48:30 +01:00
configs drivers: bus: Delete CONFIG_SIMPLE_PM_BUS 2021-10-05 17:47:22 +02:00
crypto crypto: arm64/sm4-ce - Make dependent on sm4 library instead of sm4-generic 2021-07-30 10:58:30 +08:00
hyperv arm64: hyperv: Initialize hypervisor on boot 2021-08-04 16:54:36 +00:00
include KVM: arm64: Avoid setting the upper 32 bits of TCR_EL2 and CPTR_EL2 to 1 2021-12-08 09:04:44 +01:00
kernel arm64: ftrace: add missing BTIs 2021-12-08 09:04:47 +01:00
kvm KVM: arm64: Save PSTATE early on exit 2021-12-17 10:30:14 +01:00
lib arm64: Mitigate MTE issues with str{n}cmp() 2021-09-21 14:50:19 +01:00
mm arm64: mm: update max_pfn after memory hotplug 2021-11-18 19:16:27 +01:00
net bpf: Define bpf_jit_alloc_exec_limit for arm64 JIT 2021-10-22 17:23:53 -07:00
tools arm64: Allow mismatched 32-bit EL0 support 2021-06-11 13:25:40 +01:00
xen arm64: xen: Use modern annotations for assembly functions 2020-01-09 16:09:42 +00:00
Kbuild arm64: hyperv: Add Hyper-V hypercall and register access utilities 2021-08-04 16:54:36 +00:00
Kconfig asm-generic: build fixes for v5.15 2021-10-08 11:57:54 -07:00
Kconfig.debug arm64: remove TEXT_OFFSET randomization 2020-06-15 13:10:59 +01:00
Kconfig.platforms Merge branch 'arm/fixes' into arm/soc 2021-07-09 10:46:02 -07:00
Makefile arm64 updates for 5.15: 2021-09-01 15:04:29 -07:00