From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=195.135.223.130 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1793019801; b=NvhXYz8bCweSNUbme9joEGOGhi0p0d/h3AGe88PD03UXOawqyTfHrsbpA3DiAATgpdtQ Yi2aLcZkbdB7MXs7KPTzH6RXxMJ2CyX/x3reBXFq4H4LKzofRDTOCcz88aK+vhx+uKeqJ P4KYkItdcGlT1P3Lwy7FcxCI6O8ayMKPoGn3AyPJB+LhWxMXBzUjozBF8tuHjmt93r8SP MwWde0zGNu2FurKg+QTp01hC+6s7BOW/oA3xNsR8I0ezYbMO+elolZev/PlcqaQcDBP+G SZTE5rRkeIc7eg63pcypnI9P9f2MqbkBWlzMUVxMFWcbF43T2tKN0QOZtFHENedR1bw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1793019801; h=DMARC-Filter:Received:Received:Received:From:To:Cc:Subject:Date: Message-ID:X-Mailer:In-Reply-To:References:MIME-Version: Content-Transfer-Encoding:X-Rspamd-Pre-Result:X-Rspamd-Server: X-Spamd-Result:X-Spam-Flag:X-Spam-Score:X-Spam-Level: X-Rspamd-Queue-Id:X-Rspamd-Pre-Result:X-Rspamd-Action; bh=YnPuilh2RpPWZzk8l1KEkPhcgPz+FSvpgZ6Mkcple3g=; b=i3ceUZCg41SLK6FCyD1tr65YWP5t32dq6M5HSlyhcs97wwie4/3wQj2yNT7740UY6xrH w/gt4hdm4MtGHVpcdQcT0bbg8KewpDOVJm7pOdDoVsrRnqxICTTaqvxQMWGzgxrR1cFuu YDuWw2NZS2wwpnGDuCqsBChaXgI6FPxPiTPixgk/b2ylb0zzodoQI8gy0dTDwhByAM+8x dWHRdLCKLC6WQVkEKOGeFLSYDfdZ9uBV+A9WzcmDa1JTV9ZwjQvEWx67VfUP7w0RwQ0ap NvXPb9DS7vFNDjEUtJ024teuH9SJvRSn/L2paunBtE+wLVvjsEWfFGK5lIKuX8LK+bQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=suse.com; spf=pass smtp.mailfrom=suse.com; arc=none smtp.remote-ip=195.135.223.130 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E23B4606A321 for ; Mon, 26 Oct 2026 13:03:20 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E23B4606A321 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=suse.com Received: from imap1.dmz-prg2.suse.org (imap1.dmz-prg2.suse.org [IPv6:2a07:de40:b281:104:10:150:64:97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 759BE2217D; Mon, 26 Oct 2026 13:03:19 +0000 (UTC) Authentication-Results: smtp-out1.suse.de; none Received: from imap1.dmz-prg2.suse.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by imap1.dmz-prg2.suse.org (Postfix) with ESMTPS id 056C513408; Mon, 26 Oct 2026 13:03:18 +0000 (UTC) Received: from dovecot-director2.suse.de ([2a07:de40:b281:106:10:150:64:167]) by imap1.dmz-prg2.suse.org with ESMTPSA id QNc1M5ZP32pKWwAAD6G6ig (envelope-from ); Mon, 26 Oct 2026 13:03:18 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org, virtualization@lists.linux.dev Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , Ajay Kaher , Alexey Makhalov , Broadcom internal kernel review list Subject: [PATCH v5 09/12] x86/msr: Remove wrmsr() Date: Mon, 26 Oct 2026 14:02:20 +0100 Message-ID: <20261026130223.773129-10-jgross@suse.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261026130223.773129-1-jgross@suse.com> References: <20261026130223.773129-1-jgross@suse.com> X-Mailing-List: virtualization@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Server: rspamd1.dmz-prg2.suse.org X-Spamd-Result: default: False [-4.00 / 50.00]; REPLY(-4.00)[]; R_RATELIMIT(0.00)[to_ip_from(RLkdkdrsxe9hqhhs5ask8616i6)] X-Spam-Flag: NO X-Spam-Score: -4.00 X-Spam-Level: X-Rspamd-Queue-Id: 759BE2217D X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Rspamd-Action: no action wrmsr() has no users left. Delete it. Signed-off-by: Juergen Gross --- arch/x86/include/asm/msr.h | 5 ----- arch/x86/include/asm/paravirt.h | 5 ----- 2 files changed, 10 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index 776a2daa2ba2..badab5762f3a 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -186,11 +186,6 @@ do { \ (void)((high) = (u32)(__val >> 32)); \ } while (0) -static inline void wrmsr(u32 msr, u32 low, u32 high) -{ - native_write_msr(msr, (u64)high << 32 | low); -} - #define rdmsrq(msr, val) \ ((val) = native_read_msr((msr))) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 97b082095572..47d4e36d14cb 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -157,11 +157,6 @@ do { \ val2 = _l >> 32; \ } while (0) -static __always_inline void wrmsr(u32 msr, u32 low, u32 high) -{ - paravirt_write_msr(msr, (u64)high << 32 | low); -} - #define rdmsrq(msr, val) \ do { \ val = paravirt_read_msr(msr); \ -- 2.56.0