]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Make ipi_cpu() function as intended.
authoradrian <adrian@FreeBSD.org>
Sat, 30 May 2009 08:53:13 +0000 (08:53 +0000)
committeradrian <adrian@FreeBSD.org>
Sat, 30 May 2009 08:53:13 +0000 (08:53 +0000)
commitddadeb61d5877eaa186b7cb6a0c0bcd89c276f16
tree114b1b32966e80fff42645caefb8e08db21fe769
parent7059dd02fa8ac8944e14eca5897ec27371c19d5d
Make ipi_cpu() function as intended.

IPI's in Xen are implemented through hypervisor event channels.
The MP code creates a pair of IRQs for each base IPI per CPU
(one for IPI function dispatch calls, one for IPI bitmap dispatch calls.)
Using PCPU_GET() was returning the IRQ of the IPI handler for the
current CPU; thus calls to ipi_cpu() were sending itself a message.
Instead, looking up the IPI in the target CPU ipi-to-irq map is needed.

Note: This doesn't fix Xen SMP (far from it!) but it at least
sends IPI's to the right places. Next - sending IPIs..

PR: 135069
sys/xen/evtchn/evtchn.c