From: Sean Christopherson <sean.j.christopherson@intel.com>
To: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Andy Lutomirski <luto@kernel.org>,
Dave Hansen <dave.hansen@intel.com>,
Jim Mattson <jmattson@google.com>, Joerg Roedel <joro@8bytes.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Vitaly Kuznetsov <vkuznets@redhat.com>,
Wanpeng Li <wanpengli@tencent.com>,
Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
X86 ML <x86@kernel.org>,
"Chang S. Bae" <chang.seok.bae@intel.com>,
Thomas Gleixner <tglx@linutronix.de>,
Sasha Levin <sashal@kernel.org>, Borislav Petkov <bp@alien8.de>,
Peter Zijlstra <peterz@infradead.org>,
Ingo Molnar <mingo@kernel.org>
Subject: Re: FSGSBASE causing panic on 5.9-rc1
Date: Thu, 20 Aug 2020 18:56:30 -0700 [thread overview]
Message-ID: <20200821015630.GC13886@sjchrist-ice> (raw)
In-Reply-To: <30eb9d62-a883-2630-c51f-6f5ee4def07a@amd.com>
On Thu, Aug 20, 2020 at 07:00:16PM -0500, Tom Lendacky wrote:
> On 8/20/20 5:34 PM, Sean Christopherson wrote:
> > On Thu, Aug 20, 2020 at 03:07:10PM -0700, Andy Lutomirski wrote:
> > > On Thu, Aug 20, 2020 at 3:05 PM Sean Christopherson
> > > <sean.j.christopherson@intel.com> wrote:
> > > >
> > > > On Thu, Aug 20, 2020 at 01:36:46PM -0700, Andy Lutomirski wrote:
> > > > >
> > > > > Depending on how much of a perf hit this is, we could also skip using RDPID
> > > > > in the paranoid path on SVM-capable CPUs.
> > > >
> > > > Doesn't this affect VMX as well? KVM+VMX doesn't restore TSC_AUX until the
> > > > kernel returns to userspace. I don't see anything that prevents the NMI
> > > > RDPID path from affecting Intel CPUs.
> > > >
> > > > Assuming that's the case, I would strongly prefer this be handled in the
> > > > paranoid path. NMIs are unblocked immediately on VMX VM-Exit, which means
> > > > using the MSR load lists in the VMCS, and I hate those with a vengeance.
> > > >
> > > > Perf overhead on VMX would be 8-10% for VM-Exits that would normally stay
> > > > in KVM's run loop, e.g. ~125 cycles for the WMRSR, ~1300-1500 cycles to
> > > > handle the most common VM-Exits. It'd be even higher overhead for the
> > > > VMX preemption timer, which is handled without even enabling IRQs and is
> > > > a hot path as it's used to emulate the TSC deadline timer for the guest.
> > >
> > > I'm fine with that -- let's get rid of RDPID unconditionally in the
> > > paranoid path. Want to send a patch that also adds as comment
> > > explaining why we're not using RDPID?
> >
> > Sure, though I won't object if Tom beats me to the punch :-)
>
> I can do it, but won't be able to get to it until sometime tomorrow.
Confirmed VMX goes kaboom when running perf with a VM. Patch incoming.
next prev parent reply other threads:[~2020-08-21 1:56 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-08-19 18:07 FSGSBASE causing panic on 5.9-rc1 Tom Lendacky
2020-08-19 18:19 ` Tom Lendacky
2020-08-19 21:25 ` Andy Lutomirski
2020-08-20 0:21 ` Andy Lutomirski
2020-08-20 15:10 ` Sean Christopherson
2020-08-20 15:21 ` Tom Lendacky
2020-08-20 15:55 ` Andy Lutomirski
2020-08-20 16:17 ` Tom Lendacky
2020-08-20 16:30 ` Tom Lendacky
2020-08-20 17:41 ` Paolo Bonzini
2020-08-20 18:34 ` Tom Lendacky
2020-08-20 18:38 ` Jim Mattson
2020-08-20 18:39 ` Jim Mattson
2020-08-20 18:41 ` Tom Lendacky
2020-08-20 19:04 ` Tom Lendacky
2020-08-20 19:05 ` Tom Lendacky
2020-08-20 20:07 ` Dave Hansen
2020-08-20 20:15 ` Tom Lendacky
2020-08-20 20:36 ` Andy Lutomirski
2020-08-20 22:05 ` Sean Christopherson
2020-08-20 22:07 ` Andy Lutomirski
2020-08-20 22:34 ` Sean Christopherson
2020-08-21 0:00 ` Tom Lendacky
2020-08-21 1:56 ` Sean Christopherson [this message]
2020-08-20 18:43 ` Bae, Chang Seok
2020-08-20 13:43 ` Paolo Bonzini
2020-08-20 17:51 ` Andy Lutomirski
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=20200821015630.GC13886@sjchrist-ice \
--to=sean.j.christopherson@intel.com \
--cc=bp@alien8.de \
--cc=chang.seok.bae@intel.com \
--cc=dave.hansen@intel.com \
--cc=jmattson@google.com \
--cc=joro@8bytes.org \
--cc=linux-kernel@vger.kernel.org \
--cc=luto@kernel.org \
--cc=mingo@kernel.org \
--cc=pbonzini@redhat.com \
--cc=peterz@infradead.org \
--cc=sashal@kernel.org \
--cc=tglx@linutronix.de \
--cc=thomas.lendacky@amd.com \
--cc=vkuznets@redhat.com \
--cc=wanpengli@tencent.com \
--cc=x86@kernel.org \
/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