From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=3.0 tests=MAILING_LIST_MULTI,SPF_PASS autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 740CEC64EB4 for ; Fri, 30 Nov 2018 21:13:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 42A1120834 for ; Fri, 30 Nov 2018 21:13:49 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 42A1120834 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726719AbeLAIYX (ORCPT ); Sat, 1 Dec 2018 03:24:23 -0500 Received: from mx2.suse.de ([195.135.220.15]:44948 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1725749AbeLAIYW (ORCPT ); Sat, 1 Dec 2018 03:24:22 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id ABE8AAC89; Fri, 30 Nov 2018 21:13:45 +0000 (UTC) Date: Fri, 30 Nov 2018 22:13:42 +0100 (CET) From: Jiri Kosina To: Andy Lutomirski cc: Steven Rostedt , Linus Torvalds , Josh Poimboeuf , Peter Zijlstra , X86 ML , LKML , Ard Biesheuvel , Ingo Molnar , Thomas Gleixner , Masami Hiramatsu , Jason Baron , David Laight , Borislav Petkov , julia@ni.com, jeyu@kernel.org, "H. Peter Anvin" Subject: Re: [PATCH v2 4/4] x86/static_call: Add inline static call implementation for x86-64 In-Reply-To: Message-ID: References: <20181129124404.2fe55dd0@gandalf.local.home> <20181129125857.75c55b96@gandalf.local.home> <20181129134725.6d86ade6@gandalf.local.home> <20181129202452.56f4j2wdct6qbaqo@treble> <20181130183917.hxmti5josgq4clti@treble> <20181130152852.456ce379@gandalf.local.home> User-Agent: Alpine 2.21 (LSU 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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