kernel_optimize_test/arch/arm64/kvm
Marc Zyngier 9eab949e2b KVM: arm64: Save PSTATE early on exit
[ Upstream commit 83bb2c1a01d7127d5adc7d69d7aaa3f7072de2b4 ]

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>
2021-12-17 10:14:39 +01:00
..
hyp KVM: arm64: Save PSTATE early on exit 2021-12-17 10:14:39 +01:00
vgic treewide: Change list_sort to use const pointers 2021-09-30 10:11:04 +02:00
aarch32.c
arch_timer.c
arm.c KVM: arm64: Handle PSCI resets before userspace touches vCPU state 2021-09-22 12:28:04 +02:00
debug.c KVM: arm64: Initialize VCPU mdcr_el2 before loading it 2021-05-14 09:50:33 +02:00
fpsimd.c
guest.c
handle_exit.c
hypercalls.c
inject_fault.c
irq.h
Kconfig
Makefile
mmio.c
mmu.c
perf.c
pmu-emul.c KVM: arm64: Don't zero the cycle count register when PMCR_EL0.P is set 2021-07-14 16:56:08 +02:00
pmu.c
psci.c
pvtime.c
regmap.c
reset.c KVM: arm64: Fix read-side race on updates to vcpu reset state 2021-09-22 12:28:03 +02:00
sys_regs.c KVM: arm64: Fix debug register indexing 2021-06-10 13:39:28 +02:00
sys_regs.h
trace_arm.h
trace_handle_exit.h
trace.h
va_layout.c
vgic-sys-reg-v3.c