]> git.itanic.dy.fi Git - linux-stable/commit
KVM: PPC: Book3S HV: Context tracking exit guest context before enabling irqs
authorNicholas Piggin <npiggin@gmail.com>
Sat, 30 Jan 2021 13:08:12 +0000 (23:08 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 8 Feb 2021 13:02:08 +0000 (00:02 +1100)
commit112665286d08c87e66d699e7cba43c1497ad165f
tree4134d6e03dfc00070ea18988ced37004709146a6
parentc0ef717305f51e29b5ce0c78a6bfe566b3283415
KVM: PPC: Book3S HV: Context tracking exit guest context before enabling irqs

Interrupts that occur in kernel mode expect that context tracking
is set to kernel. Enabling local irqs before context tracking
switches from guest to host means interrupts can come in and trigger
warnings about wrong context, and possibly worse.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210130130852.2952424-3-npiggin@gmail.com
arch/powerpc/kvm/book3s_hv.c