arm64: KVM: VHE: Context switch MDSCR_EL1
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Jul 2016 12:56:54 +0000 (13:56 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Sat, 23 Jul 2016 16:07:12 +0000 (18:07 +0200)
commit4c47eb1c18c38b755eb4894a6ca38f834de3ec23
tree107cc8af914c8ece3737a5b2298b05bd12e230ea
parentb244c9fc251e14a083a1cbf04bef10bd99303a76
arm64: KVM: VHE: Context switch MDSCR_EL1

The kprobe enablement work has uncovered that changes made by
a guest to MDSCR_EL1 were propagated to the host when VHE was
enabled, leading to unexpected exception being delivered.

Moving this register to the list of registers that are always
context-switched fixes the issue.

Fixes: 9c6c35683286 ("arm64: KVM: VHE: Split save/restore of registers shared between guest and host")
Cc: stable@vger.kernel.org #4.6
Reported-by: Tirumalesh Chalamarla <Tirumalesh.Chalamarla@cavium.com>
Tested-by: Tirumalesh Chalamarla <Tirumalesh.Chalamarla@cavium.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/arm64/kvm/hyp/sysreg-sr.c