From: Sean Christopherson <seanjc@google.com>
To: Sean Christopherson <seanjc@google.com>,
linux-kernel@vger.kernel.org, kvm@vger.kernel.org,
"Xin Li (Intel)" <xin@zytor.com>
Cc: pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com,
bp@alien8.de, dave.hansen@linux.intel.com, x86@kernel.org,
hpa@zytor.com, chao.gao@intel.com
Subject: Re: [PATCH v1 1/1] KVM: x86: Advertise support for LKGS
Date: Thu, 10 Jul 2025 16:08:52 -0700 [thread overview]
Message-ID: <175218111367.1487754.6051373868234671503.b4-ty@google.com> (raw)
In-Reply-To: <20250626173521.2301088-1-xin@zytor.com>
On Thu, 26 Jun 2025 10:35:21 -0700, Xin Li (Intel) wrote:
> Advertise support for LKGS (load into IA32_KERNEL_GS_BASE) to userspace
> if the instruction is supported by the underlying CPU.
>
> LKGS is introduced with FRED to completely eliminate the need to swapgs
> explicilty. It behaves like the MOV to GS instruction except that it
> loads the base address into the IA32_KERNEL_GS_BASE MSR instead of the
> GS segment’s descriptor cache, which is exactly what Linux kernel does
> to load a user level GS base. Thus there is no need to SWAPGS away
> from the kernel GS base.
>
> [...]
Applied to kvm-x86 misc, thanks!
[1/1] KVM: x86: Advertise support for LKGS
https://github.com/kvm-x86/linux/commit/e88cfd50b606
--
https://github.com/kvm-x86/linux/tree/next
prev parent reply other threads:[~2025-07-10 23:09 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-06-26 17:35 Xin Li (Intel)
2025-07-10 23:08 ` Sean Christopherson [this message]
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=175218111367.1487754.6051373868234671503.b4-ty@google.com \
--to=seanjc@google.com \
--cc=bp@alien8.de \
--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=mingo@redhat.com \
--cc=pbonzini@redhat.com \
--cc=tglx@linutronix.de \
--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
all inboxes | Powered by JetHome®