diff options
author | Fabiano Rosas <farosas@linux.ibm.com> | 2022-01-25 18:56:55 -0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-01-31 13:43:00 +1100 |
commit | c1c8a66367a35aabbad9bd629b105b9fb49f2c1f (patch) | |
tree | 75092218759f4803b869bd1f97b799bc546bd7a9 /arch/powerpc/kvm/book3s_pr.c | |
parent | 349fbfe9b918e6dea00734f07c0fbaf4c2e2df5e (diff) |
KVM: PPC: Book3s: mmio: Deliver DSI after emulation failure
MMIO emulation can fail if the guest uses an instruction that we are
not prepared to emulate. Since these instructions can be and most
likely are valid ones, this is (slightly) closer to an access fault
than to an illegal instruction, so deliver a Data Storage interrupt
instead of a Program interrupt.
BookE ignores bad faults, so it will keep using a Program interrupt
because a DSI would cause a fault loop in the guest.
Suggested-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Fabiano Rosas <farosas@linux.ibm.com>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220125215655.1026224-6-farosas@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kvm/book3s_pr.c')
0 files changed, 0 insertions, 0 deletions