Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7849872rwb; Wed, 23 Nov 2022 11:36:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf7N7wTOIzrEHzPrwUR5+XsHRNmJ2FjyTUNaZ3vlZWEnMu4TX/XCINENEVOM0gupmytCCbV0 X-Received: by 2002:a17:902:db09:b0:188:7dca:6f4d with SMTP id m9-20020a170902db0900b001887dca6f4dmr23515771plx.68.1669232161088; Wed, 23 Nov 2022 11:36:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669232161; cv=none; d=google.com; s=arc-20160816; b=IjG/oLME9MYvlHO+cvlImBRsdBouPMyRswX/9hiw36AznHzsQkBHFfQsiOA+4d4yob P7odyGYgZLgrgAB0bZmZ4MzwhvdGmykLa5D3ux0fWFWdC3F3yN/k8D7Ea2xbHWIxS3Pp y6jC9GHLO9BPEp5qdC77+M9WykN5780Wfz8zDNY5ThhH5iLLYBhDR0qYCGR89uZBRH39 Nc0UgaaYtMoVup6gp0sPcg7Dth3U915YtXAlVDA4OReL9L/KUg+3I7xYYjqsBEIjQyhO QT7f7AxbU6qEUqZz/FeIp14F15jY5BfEWNfw7LUgvNK5xeBh9CVICql4UPfpFs/GFLTT 7uQA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=kdNaYNJoqZ0zaws1qMwaqeMsoZbKMbkmo8GOxmOy1jc=; b=xEj3OO9HQJ6K9WDa5/GoHnXaBccaPjIFjSjrLQ2WUkcM+PzTBbNItdOlD4iHTlRJhI Gsb+FDw/rMxjrfibl4e8HzsTgjhfA59iZTbr9mDZCpiCHnhqXveCUqK4wXUjpg0gAg2N OCi7KT99yaOBRYi71iH51YoyhtOQHQiuMIijBIsgPX5L7kYtrJPVfi2Vm9OKm3QLKIe7 6ZSMLaahDK8X23XscFhz32LvdYVPvDkZdpudGEsmVZWsuKOAjZ3lcP/uA1+wZYTv7jfz fvRUgGEUsWriavUj6FNQAFsT+HzVB1nDf/QG9nitjpsRPyZNluSezh+XFCfU2LkOdmQG QZOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=L6E0U3d3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 5-20020a056a00072500b0056bae3f63b5si15627622pfm.327.2022.11.23.11.35.49; Wed, 23 Nov 2022 11:36:01 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=L6E0U3d3; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239506AbiKWTTB (ORCPT + 88 others); Wed, 23 Nov 2022 14:19:01 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49910 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S238984AbiKWTS4 (ORCPT ); Wed, 23 Nov 2022 14:18:56 -0500 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5662938B0 for ; Wed, 23 Nov 2022 11:18:55 -0800 (PST) Received: by mail-pl1-x629.google.com with SMTP id w23so17477574ply.12 for ; Wed, 23 Nov 2022 11:18:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=kdNaYNJoqZ0zaws1qMwaqeMsoZbKMbkmo8GOxmOy1jc=; b=L6E0U3d3pPFmjeYCFQr0cBSEq45AA0KodB05VKYYbI2kFtz/n4zbRPzcPRvwSfLmJ1 UV5HjHM/rCcN+ykr3xN2sr5rWAw6wpyzk3M4W3XOtOH8P+h6Wd9rLNwYaV/ooHjft9oS ZYnOvGfQQy9OuizMlKboeYXWqgVEpRftPlbbm6cPle9FFkz941aOuu7lXWMG6i4EoTFx hYjdX4IirhnxX3NW3+2b+gPwc85HCz5E1c85WeK22uuWenAiorLsbYWcdnqKl1+Z+2vu 6KfdgVdZEQ49GOHUEBDRf1qOuka4evpsxfRxTL59OkuxZV2mnYRK/GSrqkumGgROK6lW 6Jjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=kdNaYNJoqZ0zaws1qMwaqeMsoZbKMbkmo8GOxmOy1jc=; b=J8q78gtLJTsw2FH4g2wQ7lSZnWp/e5fXhfthog7ZHqr6lAyPgE5Cwu1QeGren9jVIO dArU7/74K1X8i4EpjJ9lqZnJFGd1QWF9kMZKe9KUVZ0F8SpZSyP9b2W5bWWNKoj1CdSP OwA9t7/cvgbp1kY1iITnTHwCQiFLb1KGvCA9t7p+IWzyln/aMAHPFgEhSldQmTQCP/0J kEIGiFUJFbu9rS0hSCCc2lmNCxWaJz7ZuxLVbGYpYui32RbwCc2jSL1cdrBwNWnYvTB8 y638ibXKM/cNjVyzMFTwmRrQ/UeoJAO1lFPv0xRtmNJa6M6ko7Dz5UVkNIoy3iAGwXfO OKmA== X-Gm-Message-State: ANoB5pnHGRU4V5/Lk+E8+/WkzUDv9kbAgH1CZSzxnbW1Lrd+Pyi0lFEA AwoXWxv+obELJOLxjjcu2WV0vg== X-Received: by 2002:a17:903:1245:b0:187:3921:2b2d with SMTP id u5-20020a170903124500b0018739212b2dmr10757401plh.13.1669231134765; Wed, 23 Nov 2022 11:18:54 -0800 (PST) Received: from google.com (7.104.168.34.bc.googleusercontent.com. [34.168.104.7]) by smtp.gmail.com with ESMTPSA id d9-20020a17090a114900b002189672d688sm1749790pje.20.2022.11.23.11.18.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Nov 2022 11:18:54 -0800 (PST) Date: Wed, 23 Nov 2022 19:18:50 +0000 From: Sean Christopherson To: Peter Zijlstra Cc: "Li, Xin3" , Paolo Bonzini , "linux-kernel@vger.kernel.org" , "x86@kernel.org" , "kvm@vger.kernel.org" , "tglx@linutronix.de" , "mingo@redhat.com" , "bp@alien8.de" , "dave.hansen@linux.intel.com" , "hpa@zytor.com" , "Tian, Kevin" Subject: Re: [RESEND PATCH 5/6] KVM: x86/VMX: add kvm_vmx_reinject_nmi_irq() for NMI/IRQ reinjection Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 23, 2022, Peter Zijlstra wrote: > On Tue, Nov 22, 2022 at 08:52:35PM +0000, Sean Christopherson wrote: > > > Another wart that needs to be addressed is trace_kvm_exit(). IIRC, tracepoints > > must be outside of noinstr, though maybe I'm misremembering that. > > You are not, that is correct. Another point to be careful with is usage > of jump_label and static_call, both can be used in noinstr *provided* > they don't actually ever change -- so boot time setup only. > > If either of them were to change, text_poke_bp() has a clue in the name. I think we're mostly ok on that front. kvm_wait_lapic_expire() consumes multiple static keys that can change at will, but that can be kept outside of the noinstr section. Thanks!