linux/arch/arm64
Julien Thierry bfe766cf65 arm64: kvm: Prevent restoring stale PMSCR_EL1 for vcpu
When VHE is not present, KVM needs to save and restores PMSCR_EL1 when
possible. If SPE is used by the host, value of PMSCR_EL1 cannot be saved
for the guest.
If the host starts using SPE between two save+restore on the same vcpu,
restore will write the value of PMSCR_EL1 read during the first save.

Make sure __debug_save_spe_nvhe clears the value of the saved PMSCR_EL1
when the guest cannot use SPE.

Signed-off-by: Julien Thierry <julien.thierry@arm.com>
Cc: Christoffer Dall <christoffer.dall@linaro.org>
Cc: Marc Zyngier <marc.zyngier@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Will Deacon <will.deacon@arm.com>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
2017-12-18 10:53:22 +01:00
..
boot Amlogic fixes for v4.15-rc 2017-12-09 20:23:29 -08:00
configs
crypto
include KVM fixes for v4.15-rc3 2017-12-10 08:24:16 -08:00
kernel arm64/sve: Avoid dereference of dead task_struct in KVM guest entry 2017-12-06 19:08:05 +00:00
kvm arm64: kvm: Prevent restoring stale PMSCR_EL1 for vcpu 2017-12-18 10:53:22 +01:00
lib arm64 updates for 4.15 2017-11-15 10:56:56 -08:00
mm arm64: context: Fix comments and remove pointless smp_wmb() 2017-12-01 13:05:08 +00:00
net
xen
Kconfig arm64/mm/kasan: don't use vmemmap_populate() to initialize shadow 2017-11-15 18:21:05 -08:00
Kconfig.debug
Kconfig.platforms ARM: SoC driver updates for v4.15 2017-11-16 16:05:01 -08:00
Makefile arm64: ftrace: emit ftrace-mod.o contents through code 2017-12-01 13:04:59 +00:00