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 lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D2D59C433F5 for ; Thu, 25 Nov 2021 09:21:22 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.230754.398923 (Exim 4.92) (envelope-from ) id 1mqAwK-0008WO-7n; Thu, 25 Nov 2021 09:21:12 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 230754.398923; Thu, 25 Nov 2021 09:21:12 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqAwK-0008WF-4B; Thu, 25 Nov 2021 09:21:12 +0000 Received: by outflank-mailman (input) for mailman id 230754; Thu, 25 Nov 2021 09:21:11 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqAwJ-0008Uo-D1 for xen-devel@lists.xenproject.org; Thu, 25 Nov 2021 09:21:11 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 00949656-4dd1-11ec-9787-a32c541c8605; Thu, 25 Nov 2021 10:21:02 +0100 (CET) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out2.suse.de (Postfix) with ESMTPS id 40F851FDF3; Thu, 25 Nov 2021 09:20:59 +0000 (UTC) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id E9EFA13F62; Thu, 25 Nov 2021 09:20:58 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id qJGiN3pVn2FpHwAAMHmgww (envelope-from ); Thu, 25 Nov 2021 09:20:58 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 00949656-4dd1-11ec-9787-a32c541c8605 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1637832059; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=Rll1uYbFob7J30NMc3pj9IfWKE4UB2l0V0OWrDn+p70=; b=MAzp7gBiss3bNz8fRBLhUjFo+YXsTYcsfFvb3J7ImaGbepkDIH1SGe2msLKgNFXEi4OVni B0I5WH/p73MjCakbEsECLNUqv+zu05JoecDnZnOZYPBEyKeSHyHbMQFKS+3bLIB6PDimN7 tcANznhZd2iK8u9yf/+8D/pWWmbMcdk= From: Juergen Gross To: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org Cc: peterz@infradead.org, Juergen Gross , Boris Ostrovsky , Stefano Stabellini , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , kernel test robot Subject: [PATCH 2/2] xen: make HYPERVISOR_set_debugreg() always_inline Date: Thu, 25 Nov 2021 10:20:56 +0100 Message-Id: <20211125092056.24758-3-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20211125092056.24758-1-jgross@suse.com> References: <20211125092056.24758-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit HYPERVISOR_set_debugreg() is being called from noinstr code, so it should be attributed "always_inline". Fixes: 7361fac0465ba96ec8f ("x86/xen: Make set_debugreg() noinstr") Reported-by: kernel test robot Signed-off-by: Juergen Gross --- arch/x86/include/asm/xen/hypercall.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/x86/include/asm/xen/hypercall.h b/arch/x86/include/asm/xen/hypercall.h index 28ca1119606b..e5e0fe10c692 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h @@ -281,7 +281,7 @@ HYPERVISOR_callback_op(int cmd, void *arg) return _hypercall2(int, callback_op, cmd, arg); } -static inline int +static __always_inline int HYPERVISOR_set_debugreg(int reg, unsigned long value) { return _hypercall2(int, set_debugreg, reg, value); -- 2.26.2