diff options
author | Nicholas Piggin <[email protected]> | 2021-07-16 12:43:09 +1000 |
---|---|---|
committer | Michael Ellerman <[email protected]> | 2021-07-17 14:33:17 +1000 |
commit | bd31ecf44b8e18ccb1e5f6b50f85de6922a60de3 (patch) | |
tree | de056f1c39deb16d8a237c2e51d0bf2697cf02a5 /drivers/usb/cdns3/cdns3-ep0.c | |
parent | e44fbdb68049539de9923ce4bad2d277aef54892 (diff) |
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 <[email protected]>
Signed-off-by: Nicholas Piggin <[email protected]>
Signed-off-by: Michael Ellerman <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ep0.c')
0 files changed, 0 insertions, 0 deletions