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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id B63BEC433FE for ; Wed, 23 Nov 2022 09:17:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237344AbiKWJRl (ORCPT ); Wed, 23 Nov 2022 04:17:41 -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: 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.