Skip to content

Commit b8c7ee7

Browse files
mopsfeldermpe
authored andcommitted
KVM: PPC: Book3s HV: Remove unused function kvmppc_bad_interrupt
The commit fae5c9f ("KVM: PPC: Book3S HV: remove ISA v3.0 and v3.1 support from P7/8 path") removed the last reference to the function. Fixes: fae5c9f ("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
1 parent 4c9da83 commit b8c7ee7

2 files changed

Lines changed: 0 additions & 19 deletions

File tree

arch/powerpc/include/asm/kvm_book3s.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,6 @@ extern void kvmppc_copy_to_svcpu(struct kvm_vcpu *vcpu);
280280
extern void kvmppc_copy_from_svcpu(struct kvm_vcpu *vcpu);
281281

282282
long kvmppc_read_intr(void);
283-
void kvmppc_bad_interrupt(struct pt_regs *regs);
284283
void kvmppc_set_msr_hv(struct kvm_vcpu *vcpu, u64 msr);
285284
void kvmppc_inject_interrupt_hv(struct kvm_vcpu *vcpu, int vec, u64 srr1_flags);
286285

arch/powerpc/kvm/book3s_hv_builtin.c

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -489,24 +489,6 @@ static long kvmppc_read_one_intr(bool *again)
489489
return kvmppc_check_passthru(xisr, xirr, again);
490490
}
491491

492-
void kvmppc_bad_interrupt(struct pt_regs *regs)
493-
{
494-
/*
495-
* 100 could happen at any time, 200 can happen due to invalid real
496-
* address access for example (or any time due to a hardware problem).
497-
*/
498-
if (TRAP(regs) == 0x100) {
499-
get_paca()->in_nmi++;
500-
system_reset_exception(regs);
501-
get_paca()->in_nmi--;
502-
} else if (TRAP(regs) == 0x200) {
503-
machine_check_exception(regs);
504-
} else {
505-
die("Bad interrupt in KVM entry/exit code", regs, SIGABRT);
506-
}
507-
panic("Bad KVM trap");
508-
}
509-
510492
static void kvmppc_end_cede(struct kvm_vcpu *vcpu)
511493
{
512494
vcpu->arch.ceded = 0;

0 commit comments

Comments
 (0)