Nicholas Piggin bd31ecf44b KVM: PPC: Book3S: Fix CONFIG_TRANSACTIONAL_MEM=n crash
When running CPU_FTR_P9_TM_HV_ASSIST, HFSCR[TM] is set for the guest
even if the host has CONFIG_TRANSACTIONAL_MEM=n, which causes it to be
unprepared to handle guest exits while transactional.

Normal guests don't have a problem because the HTM capability will not
be advertised, but a rogue or buggy one could crash the host.

Fixes: 4bb3c7a0208f ("KVM: PPC: Book3S HV: Work around transactional memory bugs in POWER9")
Reported-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20210716024310.164448-1-npiggin@gmail.com
2021-07-17 14:33:17 +10:00
..
2021-07-02 12:54:34 -07:00
2021-07-05 14:08:24 -07:00
2021-07-09 10:26:52 -07:00
2021-07-02 12:54:34 -07:00
2021-07-09 10:26:52 -07:00
2021-07-02 12:54:34 -07:00
2021-07-09 10:26:52 -07:00
2021-07-02 12:54:34 -07:00
2021-07-02 12:54:34 -07:00
2021-07-10 11:01:38 -07:00