Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp3969577pxy; Tue, 4 May 2021 14:24:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwcA9+hRw5zD9D0LYWV1IwoYqabZJb4UsQSkx0zAy6c1QXT64BASbt0t5kAxT7x8MpVCbje X-Received: by 2002:a17:902:fe85:b029:ee:c9b7:e1c6 with SMTP id x5-20020a170902fe85b02900eec9b7e1c6mr16136705plm.70.1620163464672; Tue, 04 May 2021 14:24:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620163464; cv=none; d=google.com; s=arc-20160816; b=NOSVlSUh3p1CFPBkrgwdcxIhJfOrob9m0P7vLAloh8haFEbASk66z/qU+u5d9IjPlU +O4bPTSwbX6cUC5Blxp35tOYgbhCt/CH0Z/4jTPcXey1fopwbpem4Ye/i6SzlZic/nXI ijUksD/bL7Ck3GKQnT3dsVBAop9unVbBa+/1C8Ir5pnlsEb7OkA2UiVNBdavc1j0SpOg 8RDvXAhVV7bYzu7tEZH++w/MckmoKuwk5EVUS7UdP49MJPUSo7JdggmoLtUMil85TvrI nIZrzUordFQaEl07xq2VlVdHUC+Ibcs82fGSXoyZE83fXUJLqrSau13e6+RvSqh9oEWS K/Ug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:to:in-reply-to:cc:references:message-id:date :subject:mime-version:from:content-transfer-encoding:dkim-signature; bh=crQ/z90VynR9Nw4iMZbm/fJ+5jGazNEOnJsFBEBiLQA=; b=F4K6Ti1lHrRT9FAr3PPBM1AhFjOHRHRe+q5gqZRj9civWUAZ6RYAhJWqgeREBh1rtP Iw2sG4wKgn4588p6mRSXw51X+7FH+72UvsyrOVI7A2GsRfKJHxFmsA7RsJYJJXd1n4ar i+avs7GhmoZOkVK+3QIcd0g/ZmoKpi0VLnnX4vJp/qc9n8mU1z1+T+9Gq5MM3H+EqCFm L2Poy87OjZO5j6bxvNVAFQrNdiGCqLP6mOh/FWqCnNrekKUdJp9kuw8E009HunNE0FVX PVmJngQphbsAnHdWlJwwg9/+xAFR4iJOpG7OE4zds4mXcsaJyB9b6nes2pqqdiElj5cM ywQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=pUPNK9J9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id m13si4398161pgq.36.2021.05.04.14.24.11; Tue, 04 May 2021 14:24:24 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=pUPNK9J9; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232864AbhEDVYg (ORCPT + 99 others); Tue, 4 May 2021 17:24:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232782AbhEDVYe (ORCPT ); Tue, 4 May 2021 17:24:34 -0400 Received: from mail-pf1-x436.google.com (mail-pf1-x436.google.com [IPv6:2607:f8b0:4864:20::436]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9AAC1C061574 for ; Tue, 4 May 2021 14:23:39 -0700 (PDT) Received: by mail-pf1-x436.google.com with SMTP id h11so531103pfn.0 for ; Tue, 04 May 2021 14:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=crQ/z90VynR9Nw4iMZbm/fJ+5jGazNEOnJsFBEBiLQA=; b=pUPNK9J9gLuhujWqex8hulXlwddBwJ06dqftvgLSVwT2qAFtUAqE9l14QRXVPH6AO8 2/lKMSWge1ZHJzUWin/LaLdOp6QsCrsxhULscCPeHE+RfX698lUKfPRwDh/WYKxgTZm1 DgDh3vnOh03o/5k4fLUEHtkbIM7gKsnHke48sFY96HdnjsEgUTduUXq20ySypDYu7MNc G2+eYi8jjO9xBa/oYO6w0cBxYy2OQN4Pk/uKEUZ83i7ffmnheDPAmUj9aprs7y4h1WEC 3iT2c5IJJxseCD95AXQ9VRNcbXv4n1CWkVO6FeGLvmR2NGtu//WC67N1PnHma125QOjI 4PJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=crQ/z90VynR9Nw4iMZbm/fJ+5jGazNEOnJsFBEBiLQA=; b=O1rpeZg1Y9TBUTNkmNKHkeBh8TOTNz5yKh6/Wp/QUVwOfUEVCsa5r8reBxAZXwdxsZ joG8lsnh0ljOIqJUHff9o3U+rzEw+I6s4S1GzIgrVpEYfeQ15bcAJXIodxr+z523CQC/ veMPgpCZge5xARTpJ2X3lods5LmGHqrwByTBcGWBmd0Zq+2pLRlzd13y7UsQKNzxG3za piHmm1PAeBYdArE8u9ky6CgeJvD8nPWp77SdulSY8Dp1tgAIIFn5WMhFZqWydSSv7WQx MsvIK15tvAzznIi7BEgoFjpkIHBaTdoj47pqjq3F9z7+UqMr+OLVPzSpM9WRZpp4mAXI wOHA== X-Gm-Message-State: AOAM530kVYi8lJNuokcxiN28jrdYUC/BRZYciKXPZu7TQgJ0yS+NYtw6 vO/u8OJnfah/m/4w+17x+sPRog== X-Received: by 2002:a17:90a:950c:: with SMTP id t12mr7437856pjo.135.1620163419085; Tue, 04 May 2021 14:23:39 -0700 (PDT) Received: from smtpclient.apple ([2600:1012:b045:bfcd:1901:995b:42d3:ee59]) by smtp.gmail.com with ESMTPSA id c16sm4217178pgl.79.2021.05.04.14.23.38 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 04 May 2021 14:23:38 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH] KVM/VMX: Invoke NMI non-IST entry instead of IST entry Date: Tue, 4 May 2021 14:23:37 -0700 Message-Id: <38B9D60F-F24F-4910-B2DF-2A57F1060452@amacapital.net> References: Cc: Paolo Bonzini , Maxim Levitsky , Thomas Gleixner , Lai Jiangshan , linux-kernel@vger.kernel.org, Lai Jiangshan , Steven Rostedt , Andi Kleen , Andy Lutomirski , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Josh Poimboeuf , Uros Bizjak , Ingo Molnar , Borislav Petkov , x86@kernel.org, "H. Peter Anvin" , Peter Zijlstra , Alexandre Chartre , Juergen Gross , Joerg Roedel , Jian Cai In-Reply-To: To: Sean Christopherson X-Mailer: iPhone Mail (18E199) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On May 4, 2021, at 2:21 PM, Sean Christopherson wrote:= >=20 > =EF=BB=BFOn Tue, May 04, 2021, Paolo Bonzini wrote: >>> On 04/05/21 23:05, Maxim Levitsky wrote: >>> Does this mean that we still rely on hardware NMI masking to be activate= d? >>=20 >> No, the NMI code already handles reentrancy at both the assembly and C >> levels. >>=20 >>> Or in other words, that is we still can't have an IRET between VM exit a= nd >>> the entry to the NMI handler? >>=20 >> No, because NMIs are not masked on VM exit. This in fact makes things >> potentially messy; unlike with AMD's CLGI/STGI, only MSRs and other thing= s >> that Intel thought can be restored atomically with the VM exit. >=20 > FWIW, NMIs are masked if the VM-Exit was due to an NMI. Then this whole change is busted, since nothing will unmask NMIs. Revert it?=