diff options
author | Murilo Opsfelder Araujo <muriloo@linux.ibm.com> | 2022-07-11 19:36:17 -0300 |
---|---|---|
committer | Michael Ellerman <mpe@ellerman.id.au> | 2022-07-20 22:28:12 +1000 |
commit | b8c7ee79b1a37442a910b8a313045fb9aa639911 (patch) | |
tree | 9b9ce485f64f49a6b11e0f572a59c5c8d743f52d /arch/powerpc/kvm | |
parent | 4c9da83011c455c0791b1f5e4e84d454d4f4ae3c (diff) | |
download | linux-b8c7ee79b1a37442a910b8a313045fb9aa639911.tar.bz2 |
KVM: PPC: Book3s HV: Remove unused function kvmppc_bad_interrupt
The commit fae5c9f3664b ("KVM: PPC: Book3S HV: remove ISA v3.0 and v3.1
support from P7/8 path") removed the last reference to the function.
Fixes: fae5c9f3664b ("KVM: PPC: Book3S HV: remove ISA v3.0 and v3.1 support from P7/8 path")
Signed-off-by: Murilo Opsfelder Araujo <muriloo@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20220711223617.63625-3-muriloo@linux.ibm.com
Diffstat (limited to 'arch/powerpc/kvm')
-rw-r--r-- | arch/powerpc/kvm/book3s_hv_builtin.c | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/arch/powerpc/kvm/book3s_hv_builtin.c b/arch/powerpc/kvm/book3s_hv_builtin.c index 88a8f6473c4e..c15c6faedce5 100644 --- a/arch/powerpc/kvm/book3s_hv_builtin.c +++ b/arch/powerpc/kvm/book3s_hv_builtin.c @@ -489,24 +489,6 @@ static long kvmppc_read_one_intr(bool *again) return kvmppc_check_passthru(xisr, xirr, again); } -void kvmppc_bad_interrupt(struct pt_regs *regs) -{ - /* - * 100 could happen at any time, 200 can happen due to invalid real - * address access for example (or any time due to a hardware problem). - */ - if (TRAP(regs) == 0x100) { - get_paca()->in_nmi++; - system_reset_exception(regs); - get_paca()->in_nmi--; - } else if (TRAP(regs) == 0x200) { - machine_check_exception(regs); - } else { - die("Bad interrupt in KVM entry/exit code", regs, SIGABRT); - } - panic("Bad KVM trap"); -} - static void kvmppc_end_cede(struct kvm_vcpu *vcpu) { vcpu->arch.ceded = 0; |