From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.223.130]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 298123A7F50 for ; Mon, 29 Jun 2026 06:40:11 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=195.135.223.130 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782715213; cv=none; b=CSa0JcxWQ2d6J40akP7nLiNZowdRYRa0PuZbshhK1XVYnVHFS1FjWnH3IL+L7VnkzmoefcIf84iwHAFTUILnbRF3Drus9afadX9ytIo89WO8rhflcr5fRokq3EdYdKsD3DQg6p2Iplpb9fL6Pn7rCubUyZlo/LCem2skk45royI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782715213; c=relaxed/simple; bh=PeYck7aLo0AUVfIRKUaLdPzSX0OyOwRC1m9OJuTvv5k=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=UHw9bsa2iNndNqjqcWbQNlPD9umLWUH1J4pRQXZ1CIlS1N1FOnv0qdKq3CFue0YjKhjLEZIKo45IzHYOs0ur+dHvUQAJi8k6y9RinxZYZueeMjFF8CBBKBSY8gnrK1grDEf/OgybcfTBXwKewI7IEE9vOaPA83zqu3ei0UTOick= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=suse.com; spf=pass smtp.mailfrom=suse.com; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=EbR3JYOX; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b=EbR3JYOX; arc=none smtp.client-ip=195.135.223.130 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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="EbR3JYOX"; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="EbR3JYOX" Received: from imap1.dmz-prg2.suse.org (unknown [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 D1A7F72F24; Mon, 29 Jun 2026 06:40:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1782715208; 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=AitSlntl4ZC+MFfCNl8gqo6kAewFhyWcQ8HY7+ZB6QI=; b=EbR3JYOXyPktSwo6ZASaB8EZ7DGVJ+zR5JtB+2k/dHcgGLvJ4RSvITc7sCyUavEZzZg0Zv R5HP0fM7Y8N+w84L7rSc4Z8fT3mokIZNX4g/xH4xlOvD44DOZvCzjyqqCfVzicHbzWwDaB sjPr6wIJtOYTBE80huPXEuUaYXHGx5Q= Authentication-Results: smtp-out1.suse.de; none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1782715208; 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=AitSlntl4ZC+MFfCNl8gqo6kAewFhyWcQ8HY7+ZB6QI=; b=EbR3JYOXyPktSwo6ZASaB8EZ7DGVJ+zR5JtB+2k/dHcgGLvJ4RSvITc7sCyUavEZzZg0Zv R5HP0fM7Y8N+w84L7rSc4Z8fT3mokIZNX4g/xH4xlOvD44DOZvCzjyqqCfVzicHbzWwDaB sjPr6wIJtOYTBE80huPXEuUaYXHGx5Q= 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 92513779A8; Mon, 29 Jun 2026 06:40:08 +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 myNJIkgTQmonMgAAD6G6ig (envelope-from ); Mon, 29 Jun 2026 06:40:08 +0000 From: Juergen Gross To: linux-kernel@vger.kernel.org, x86@kernel.org Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "H. Peter Anvin" Subject: [PATCH 4/5] x86/msr: Remove native_rdmsr() Date: Mon, 29 Jun 2026 08:39:42 +0200 Message-ID: <20260629063943.3641266-5-jgross@suse.com> X-Mailer: git-send-email 2.54.0 In-Reply-To: <20260629063943.3641266-1-jgross@suse.com> References: <20260629063943.3641266-1-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Flag: NO X-Spamd-Result: default: False [-2.80 / 50.00]; BAYES_HAM(-3.00)[100.00%]; MID_CONTAINS_FROM(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_MISSING_CHARSET(0.50)[]; NEURAL_HAM_SHORT(-0.20)[-1.000]; MIME_GOOD(-0.10)[text/plain]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; FROM_HAS_DN(0.00)[]; MIME_TRACE(0.00)[0:+]; DBL_BLOCKED_OPENRESOLVER(0.00)[suse.com:email,suse.com:mid,imap1.dmz-prg2.suse.org:helo]; FUZZY_RATELIMITED(0.00)[rspamd.com]; RCPT_COUNT_SEVEN(0.00)[8]; RCVD_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; DKIM_SIGNED(0.00)[suse.com:s=susede1]; TO_DN_SOME(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Spam-Level: X-Spam-Score: -2.80 As native_rdmsr() has no users left, remove it. Signed-off-by: Juergen Gross --- arch/x86/include/asm/msr.h | 7 ------- 1 file changed, 7 deletions(-) diff --git a/arch/x86/include/asm/msr.h b/arch/x86/include/asm/msr.h index bfad2b96a892..7bb5bf408fa6 100644 --- a/arch/x86/include/asm/msr.h +++ b/arch/x86/include/asm/msr.h @@ -83,13 +83,6 @@ static __always_inline void __wrmsrq(u32 msr, u64 val) : : "c" (msr), "a" ((u32)val), "d" ((u32)(val >> 32)) : "memory"); } -#define native_rdmsr(msr, val1, val2) \ -do { \ - u64 __val = __rdmsr((msr)); \ - (void)((val1) = (u32)__val); \ - (void)((val2) = (u32)(__val >> 32)); \ -} while (0) - static __always_inline u64 native_rdmsrq(u32 msr) { return __rdmsr(msr); -- 2.54.0