Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp7120467rwb; Wed, 23 Nov 2022 02:24:01 -0800 (PST) X-Google-Smtp-Source: AA0mqf5M6InryLib2FvP1/K6DRYB18C9BMe/G+M0pNYHlGE0A9Ft9ccL6y9H4id1rWsthh1li1aF X-Received: by 2002:a05:6402:538a:b0:458:fbd9:e3b1 with SMTP id ew10-20020a056402538a00b00458fbd9e3b1mr2065400edb.6.1669199041142; Wed, 23 Nov 2022 02:24:01 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1669199041; cv=none; d=google.com; s=arc-20160816; b=CdpCiFLV5Zp6rlgUVjl6zf+W4VjnbAPhScX7lMeHn2Wn+s1TWdH2PgVsBUP5ysU7ZK SNGxyvwD9WldOcAXdd3HDBCYlDz6oaowK7X5JzmuT36ugNdbEz+R39wQltDmi1eLstHY xz+NZ7ADQqsCpI5IQ/h6XM9lLNfgWNxeRHZV4CtYw4BEjdJDHAPQnBErXW+AvZz56mu6 a1mjMRM2pqnACWrd3iDmfY6QRsTusKStpeq8bd4P2K98ID4GvAZ3ZtdZYuX/OY1FF5QV OAbt77XCX6JBe82+3Ga2JufkaXRQKwOFIy34TzaO5OCIKbbFCeZqRYBXhrPIme1Ri6hn yuiw== 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=v4gxBq1U1qCWmiTPzkyj90AjHzP7mt+3AYmwfYrtaA4=; b=Ws79/vNf0nOWDSA2CNMrYKDkKDipTGLd2m0WP4QFR0AhTVcZu8fEqLA3lGsgyIQClH mqMCpkVlV5qdUUDfhKf8ASTxCnNCzdQqKFgXssfhHbPTVbIoGETZ/j+5rVkU3wu9U4Pf vQBxbsc8dVi5vGMTirtjrSB+/6Wpn+qTI9rpTMPDfdOCOG3UmpdUR2IzttutB8QVMC+w i7Prv4WSgtxU6Ojk/LC3qxrLrAR+YAxz+94gOgMgtQGt7hh0QQ4PO646rbD03E/FKmIX TI513msmjX8NQe3/JRSfe/orob4jijpjZwdNe32nsOoroA/mK8L77cp3FbNCxT0JLbba Fw5g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=desiato.20200630 header.b=rBkTDjdZ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id xa11-20020a170906fd8b00b007ad945aa04asi16198155ejb.678.2022.11.23.02.23.39; Wed, 23 Nov 2022 02:24: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=@infradead.org header.s=desiato.20200630 header.b=rBkTDjdZ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237346AbiKWJRj (ORCPT + 88 others); Wed, 23 Nov 2022 04:17:39 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58414 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237340AbiKWJRG (ORCPT ); Wed, 23 Nov 2022 04:17:06 -0500 Received: from desiato.infradead.org (desiato.infradead.org [IPv6:2001:8b0:10b:1:d65d:64ff:fe57:4e05]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1CCD4107E71; Wed, 23 Nov 2022 01:16:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=desiato.20200630; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=v4gxBq1U1qCWmiTPzkyj90AjHzP7mt+3AYmwfYrtaA4=; b=rBkTDjdZRrjgX0Kaw+2xdF8zfQ 5hYfpSuwDbXCwUPu5RlXrGkv+ImPtocXVLtSWaHv6Cht62avcdpkIKUFBm1sHVLU0xYMdnXjIAUZ/ z/0KegQ+B8HKdoTgzJcZibSLYYd+Tac7lIVpA8V72vyBBODGHJe7u6SsYmKqKj+2KlKZlRiDGsmFE pw1zY8NcSgNZNcc1jK3DPgwpsb/QCuRc3y+NGKg9veMg0hv+d6MJ/SZnOEmJ1X8J4af5PQk7Vhx42 a2b26epUAUSA8pJWAA9yGnYFUkcUsGCDMjlHfx2R5xpp+y9H+FV0Fknn5Ydxqsn8vo8l4V4wKbiN7 gchm7PjQ==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by desiato.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1oxlrl-003jYM-AE; Wed, 23 Nov 2022 09:16:25 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 684F530034E; Wed, 23 Nov 2022 10:16:24 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 4CDB12D815CDF; Wed, 23 Nov 2022 10:16:24 +0100 (CET) Date: Wed, 23 Nov 2022 10:16:24 +0100 From: Peter Zijlstra To: Sean Christopherson 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=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_NONE, SPF_NONE autolearn=ham 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 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.