Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64

From: Jiri Kosina
Date: Fri Nov 30 2018 - 16:13:50 EST


On Fri, 30 Nov 2018, Andy Lutomirski wrote:

> According to the SDM, you can program the APIC ICR to request an SMI.
> It's not remotely clear to me what will happen if we do this.

I think one of the known reliable ways to trigger SMI is to write 0x0 to
the SMI command I/O port (0xb2).

> For all I know, the SMI handler will explode and the computer will catch
> fire.

Ha, therefore noone can't claim any more that SMIs are always harmful :)

--
Jiri Kosina
SUSE Labs