* [PATCH 2/2] powerpc/powernv: Properly set "host-ipi" on IPIs
@ 2017-02-07 0:35 Benjamin Herrenschmidt
2017-02-08 9:31 ` Michael Ellerman
2017-02-09 13:20 ` [2/2] " Michael Ellerman
0 siblings, 2 replies; 3+ messages in thread
From: Benjamin Herrenschmidt @ 2017-02-07 0:35 UTC (permalink / raw)
To: linuxppc-dev; +Cc: Paul Mackerras
Otherwise KVM will fail to pass them through to the host
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
---
arch/powerpc/sysdev/xics/icp-opal.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/arch/powerpc/sysdev/xics/icp-opal.c b/arch/powerpc/sysdev/xics/icp-opal.c
index c96c0cb..f9670ea 100644
--- a/arch/powerpc/sysdev/xics/icp-opal.c
+++ b/arch/powerpc/sysdev/xics/icp-opal.c
@@ -120,14 +120,16 @@ static void icp_opal_cause_ipi(int cpu, unsigned long data)
{
int hw_cpu = get_hard_smp_processor_id(cpu);
+ kvmppc_set_host_ipi(cpu, 1);
opal_int_set_mfrr(hw_cpu, IPI_PRIORITY);
}
static irqreturn_t icp_opal_ipi_action(int irq, void *dev_id)
{
- int hw_cpu = hard_smp_processor_id();
+ int cpu = smp_processor_id();
- opal_int_set_mfrr(hw_cpu, 0xff);
+ kvmppc_set_host_ipi(cpu, 0);
+ opal_int_set_mfrr(get_hard_smp_processor_id(cpu), 0xff);
return smp_ipi_demux();
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH 2/2] powerpc/powernv: Properly set "host-ipi" on IPIs
2017-02-07 0:35 [PATCH 2/2] powerpc/powernv: Properly set "host-ipi" on IPIs Benjamin Herrenschmidt
@ 2017-02-08 9:31 ` Michael Ellerman
2017-02-09 13:20 ` [2/2] " Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2017-02-08 9:31 UTC (permalink / raw)
To: Benjamin Herrenschmidt, linuxppc-dev; +Cc: Paul Mackerras
Benjamin Herrenschmidt <benh@kernel.crashing.org> writes:
> Otherwise KVM will fail to pass them through to the host
OK, so this is:
Fixes: d74361881f0d ("powerpc/xics: Add ICP OPAL backend")
But seeing as the KVM support is only going into v4.11, I won't tag it
for stable.
Paul do you want me to put this in the topic branch?
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [2/2] powerpc/powernv: Properly set "host-ipi" on IPIs
2017-02-07 0:35 [PATCH 2/2] powerpc/powernv: Properly set "host-ipi" on IPIs Benjamin Herrenschmidt
2017-02-08 9:31 ` Michael Ellerman
@ 2017-02-09 13:20 ` Michael Ellerman
1 sibling, 0 replies; 3+ messages in thread
From: Michael Ellerman @ 2017-02-09 13:20 UTC (permalink / raw)
To: Benjamin Herrenschmidt, linuxppc-dev; +Cc: Paul Mackerras
On Tue, 2017-02-07 at 00:35:36 UTC, Benjamin Herrenschmidt wrote:
> Otherwise KVM will fail to pass them through to the host
>
> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Applied to powerpc fixes, thanks.
https://git.kernel.org/powerpc/c/f83e6862047e1e371bdc5d512dd6ca
cheers
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2017-02-09 13:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-07 0:35 [PATCH 2/2] powerpc/powernv: Properly set "host-ipi" on IPIs Benjamin Herrenschmidt
2017-02-08 9:31 ` Michael Ellerman
2017-02-09 13:20 ` [2/2] " Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).