Re: [RFC] arch generic way to trigger unknown NMIs

From: Cyrill Gorcunov
Date: Sun Oct 10 2010 - 16:24:10 EST


On Thu, Oct 07, 2010 at 11:45:59PM +0100, Maciej W. Rozycki wrote:
> On Thu, 7 Oct 2010, Don Zickus wrote:
>
> > No I prefer a single one too, but there didn't seem to be a
> > send_IPI_self() command, so I took the short route and sent it to
> > everyone. :-(
>
> Odd, APIC hardware does explicitly support such a mode (there are three
> shorthands like this actually: all-but-self, all and self), so why don't
> just add a suitable wrapper?
>
> Maciej
>

We have send_IPI_self which can't be used for NMI delivery mode (ie with
self shortland) but still can be used as say (didn't test)

apic->send_IPI_mask(cpumask_of(cpu), NMI_VECTOR)

where cpu is a target.

Cyrill
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/