From nobody Fri Apr 26 11:05:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1637832087; cv=none; d=zohomail.com; s=zohoarc; b=VJwx+qNX9y2seqEQr3nSa0ogHqbkRl+czcRYu/AkgYx8ZSSdU7u1nwYg0hyOc0F+UXDWr7EIUbdNsp6j8YnAEecxsusPi2Hjvu7pxpUbgKAyYsIQ/FVgrUL/E/S0wkJ0gVEoJO5yjavB/mk06T0KEIOrjeEoiqEDEJhPigVvJpc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637832087; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=j+kg43gH5f/VeO+5uCJZLTpM/p/LHUGCKqHELE4mgbs=; b=bqWFOYhvVjjuiZC8i1fcToTb80KsMLTkY/2FiU34Aj9TKkM1smB8oSz+G81ZZ9EXARJxHyS68Yt+gWwslUZamk8vKhjt1ayqfSEOAWPskYrJJBTA08S7LKgfvGcW2Vkgo981BLhxTbBZ6zbtCtCegvIO0u2SzX+wk1Z0Nm0rWg8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1637832087191862.9119308110576; Thu, 25 Nov 2021 01:21:27 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.230753.398907 (Exim 4.92) (envelope-from ) id 1mqAw9-0007yA-VC; Thu, 25 Nov 2021 09:21:01 +0000 Received: by outflank-mailman (output) from mailman id 230753.398907; Thu, 25 Nov 2021 09:21:01 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqAw9-0007wF-Qu; Thu, 25 Nov 2021 09:21:01 +0000 Received: by outflank-mailman (input) for mailman id 230753; Thu, 25 Nov 2021 09:21:00 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1mqAw8-0007rb-Ja for xen-devel@lists.xenproject.org; Thu, 25 Nov 2021 09:21:00 +0000 Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 00683bef-4dd1-11ec-a9d2-d9f7a1cc8784; Thu, 25 Nov 2021 10:20:59 +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 E58DA1FDF2; Thu, 25 Nov 2021 09:20:58 +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 8CB9113F7C; 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 wJ4+IXpVn2FpHwAAMHmgww (envelope-from ); Thu, 25 Nov 2021 09:20:58 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version 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: 00683bef-4dd1-11ec-a9d2-d9f7a1cc8784 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1637832058; 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=j+kg43gH5f/VeO+5uCJZLTpM/p/LHUGCKqHELE4mgbs=; b=acI1XCkmVlG9zzoj+M7uftnNs2xwfPfCf6ZvidUV5Yf7QJ4/5/sOfIZw7H1xuXnCIV6A9c WgtZouaHhstKIjaKqHajqioTe1yx98HP9AIciRp1G6D0MungIx0Suz1uPkHl93twsrgWpa 5JFBYJekN2DzK8HLq7z0R/RkHvHWzuE= 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 1/2] xen: make HYPERVISOR_get_debugreg() always_inline Date: Thu, 25 Nov 2021 10:20:55 +0100 Message-Id: <20211125092056.24758-2-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: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1637832088275100001 Content-Type: text/plain; charset="utf-8" HYPERVISOR_get_debugreg() is being called from noinstr code, so it should be attributed "always_inline". Fixes: f4afb713e5c3a4419ba ("x86/xen: Make get_debugreg() noinstr") Reported-by: kernel test robot Signed-off-by: Juergen Gross Reviewed-by: Boris Ostrovsky --- 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/xe= n/hypercall.h index 0575f5863b7f..28ca1119606b 100644 --- a/arch/x86/include/asm/xen/hypercall.h +++ b/arch/x86/include/asm/xen/hypercall.h @@ -287,7 +287,7 @@ HYPERVISOR_set_debugreg(int reg, unsigned long value) return _hypercall2(int, set_debugreg, reg, value); } =20 -static inline unsigned long +static __always_inline unsigned long HYPERVISOR_get_debugreg(int reg) { return _hypercall1(unsigned long, get_debugreg, reg); --=20 2.26.2 From nobody Fri Apr 26 11:05:18 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=quarantine dis=none) header.from=suse.com ARC-Seal: i=1; a=rsa-sha256; t=1637832086; cv=none; d=zohomail.com; s=zohoarc; b=avqMXgdHaUtgYRm1Da7vqlyNl4YAgSNHGl1x9ZXa6xD993GGLF6mxvczmEcukji1eEhUECeUUiKgpBrTrhjqMXsGrghxAbkH5a70WVdKC3QhXYHaZJg30q92Myqis+aqoC4Ozc4wmtAlZcn6U4iMlT73wp065G3NTVu9Grbf+oM= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1637832086; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Rll1uYbFob7J30NMc3pj9IfWKE4UB2l0V0OWrDn+p70=; b=VsNt+e9mlL/bP+EYg6004SrYU30VC7UBGlcqWhRORPctsAbSLaBdtj/RkiVuc6CJ67cz/t0IHQkDxFfduL7CqeSx0qo8vIpSn4H5PIPxQOO5HjRvhHR+82+gT/10x0zsHaoNCjNqixGG1Fmk2aYphaYjWq/2XtH6u4Y/6b5KSFU= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1637832086363430.67617080821606; Thu, 25 Nov 2021 01:21:26 -0800 (PST) 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 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-Outflank-Mailman: Message body and most headers restored to incoming version 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: quoted-printable X-ZohoMail-DKIM: pass (identity @suse.com) X-ZM-MESSAGEID: 1637832088373100003 Content-Type: text/plain; charset="utf-8" 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 Reviewed-by: Boris Ostrovsky --- 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/xe= n/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); } =20 -static inline int +static __always_inline int HYPERVISOR_set_debugreg(int reg, unsigned long value) { return _hypercall2(int, set_debugreg, reg, value); --=20 2.26.2