From: Dave Hansen <dave.hansen@intel.com>
To: "H. Peter Anvin" <hpa@zytor.com>,
Sohil Mehta <sohil.mehta@intel.com>,
Dave Hansen <dave.hansen@linux.intel.com>,
Borislav Petkov <bp@alien8.de>
Cc: Thomas Gleixner <tglx@kernel.org>, Ingo Molnar <mingo@redhat.com>,
x86@kernel.org, Xin Li <xin@zytor.com>,
Andy Lutomirski <luto@kernel.org>,
Peter Zijlstra <peterz@infradead.org>,
Binbin Wu <binbin.wu@linux.intel.com>,
Tom Lendacky <thomas.lendacky@amd.com>,
"Chang S . Bae" <chang.seok.bae@intel.com>,
Chao Gao <chao.gao@intel.com>,
Sean Christopherson <seanjc@google.com>,
Paolo Bonzini <pbonzini@redhat.com>,
kvm@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: Re: [PATCH v2] x86/fred: Consolidate the FRED stack pointer assignments
Date: Mon, 30 Nov 2026 15:38:10 -0800 [thread overview]
Message-ID: <1a3ebcfc-dbb0-48eb-9674-7c34e5fdcb2d@intel.com> (raw)
In-Reply-To: <6F472667-8E3B-4CA7-BC38-27C55B8354AA@zytor.com>
On 11/30/26 15:18, H. Peter Anvin wrote:
>> BTW, does the KVM code need the MSR value or does it also need to do a
>> wrmsr()?
> It *is* doing a wrmsr? The point is that it doesn't need to do a rdmsr.
I was just thinking that the redundancy in the use could be removed by
moving the wrmsr() into the helper. Instead of:
wrmsrq(MSR_IA32_FRED_RSP1, this_cpu_fred_sp(MSR_IA32_FRED_RSP1));
it might make sense for it to look more like:
build_fred_sp(MSR_IA32_FRED_RSP1);
and then do the wrmsr() internally. It might be a bit more compact.
next prev parent reply other threads:[~2026-11-30 23:38 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-24 20:06 [PATCH v2] x86/fred: Consolidate the FRED stack pointer assignments Sohil Mehta
2026-11-30 22:43 ` Dave Hansen
2026-11-30 23:18 ` H. Peter Anvin
2026-11-30 23:38 ` Dave Hansen [this message]
2026-11-30 23:43 ` Sohil Mehta
2026-11-30 23:48 ` Dave Hansen
2026-12-01 0:02 ` Sohil Mehta
2026-12-01 0:06 ` H. Peter Anvin
2026-12-01 10:31 ` David Laight
2026-11-30 23:37 ` Sohil Mehta
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1a3ebcfc-dbb0-48eb-9674-7c34e5fdcb2d@intel.com \
--to=dave.hansen@intel.com \
--cc=binbin.wu@linux.intel.com \
--cc=bp@alien8.de \
--cc=chang.seok.bae@intel.com \
--cc=chao.gao@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=seanjc@google.com \
--cc=sohil.mehta@intel.com \
--cc=tglx@kernel.org \
--cc=thomas.lendacky@amd.com \
--cc=x86@kernel.org \
--cc=xin@zytor.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox