Skip to content

Commit f83e686

Browse files
ozbenhmpe
authored andcommitted
powerpc/powernv: Properly set "host-ipi" on IPIs
Otherwise KVM will fail to pass them through to the host Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
1 parent 9b25671 commit f83e686

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

‎arch/powerpc/sysdev/xics/icp-opal.c‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,16 @@ static void icp_opal_cause_ipi(int cpu, unsigned long data)
120120
{
121121
int hw_cpu = get_hard_smp_processor_id(cpu);
122122

123+
kvmppc_set_host_ipi(cpu, 1);
123124
opal_int_set_mfrr(hw_cpu, IPI_PRIORITY);
124125
}
125126

126127
static irqreturn_t icp_opal_ipi_action(int irq, void *dev_id)
127128
{
128-
int hw_cpu = hard_smp_processor_id();
129+
int cpu = smp_processor_id();
129130

130-
opal_int_set_mfrr(hw_cpu, 0xff);
131+
kvmppc_set_host_ipi(cpu, 0);
132+
opal_int_set_mfrr(get_hard_smp_processor_id(cpu), 0xff);
131133

132134
return smp_ipi_demux();
133135
}

0 commit comments

Comments
 (0)