Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp1696638pxa; Thu, 20 Aug 2020 18:59:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwVXE4RYyFXhGt8CKSQ8RrdT2Vf5VWXoPxyI5d8BwCfPuVcBbQsxHp2mAWNEDRKOJHOuluY X-Received: by 2002:a17:906:ff05:: with SMTP id zn5mr745766ejb.64.1597975140335; Thu, 20 Aug 2020 18:59:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597975140; cv=none; d=google.com; s=arc-20160816; b=BrmGXYf4YmeOzI46HqWbepAkLqJc2JSOzvSEzZro0onL6MQrs2ACoXINxGkRELlr+D FGEv0q1PaXIFcfzYTzkd+dz0LviLQb9zKPRlt9/eBuWbdNXkwSArjfrji3MZMy9hAqhU l1MT3ZQW6dcC98PWNt0yozQYbNhk3Ml/ozjV7nCOw17hIdwRpY1kUt4pxfAmTwoccBFl d1M7TuO8LHIlUmGvIqbY2bCTTm7GUxtpyM6vN7ta8D8wsfpc9PSpqIwEgBOMsi4mWPFJ rugFSHLC0Ecjgh+97C4X8qL9tFaTgw5gsmzj1nrnhSYiWtXu0YZFbos/QKV/vvzDgZsG yekg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=zugI84qiiIpJxEa32pESFWYwCILRREoPOeBb8Ak+eJU=; b=vbKUiWLvOaM4LCU2TzCrXDSHc9r4WKmKBUc0EThBIjLgPzqo/05IkLLGaDuGdSxkGK 4m+V2Up1rEFMulQ/gYZMAe5CoPfdIWe78UK2cOnkDwQ3zmQmQgWimegN3l45W+Ja8RbM VFNOWXMqAeBKSCLTk7bVq7L4E/Qwk8m2fz3jy5kyBVM11tzF7QPLqJAOE6oI/SziuD9K Qac9q3an/qmPzed2/ktavPkJTpoa80O7TpyCkVhLtu9Y4vaPSX0FQ+wwQn6/55CoIL8U qq4Pd4SlWNA64+L2X7WXEIjycR1E4BmO12BXbN6gOmgyu/rCHUJa3Eat+qUEQI5TOZpu SiaQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l11si214992ejx.11.2020.08.20.18.58.36; Thu, 20 Aug 2020 18:59:00 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727075AbgHUB4c (ORCPT + 99 others); Thu, 20 Aug 2020 21:56:32 -0400 Received: from mga05.intel.com ([192.55.52.43]:11241 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726841AbgHUB4b (ORCPT ); Thu, 20 Aug 2020 21:56:31 -0400 IronPort-SDR: oDlFXY+QQu/nc/5/XZHvxPWpPRKB2LDEu230uy07D3x4M8ZOeFaVkO3BjWjDnPPJosW/ccInMN hoEy6jgG2Yfg== X-IronPort-AV: E=McAfee;i="6000,8403,9719"; a="240260123" X-IronPort-AV: E=Sophos;i="5.76,335,1592895600"; d="scan'208";a="240260123" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 18:56:31 -0700 IronPort-SDR: +51YzU+a88n12EbFcxBINApJoazCsH48jAdsUdW7Yg6+K4/2Ie1sAC+h15WS1NNLMwjdzqnh9g u4lref9jfyaw== X-IronPort-AV: E=Sophos;i="5.76,335,1592895600"; d="scan'208";a="472869857" Received: from sjchrist-ice.jf.intel.com (HELO sjchrist-ice) ([10.54.31.34]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 20 Aug 2020 18:56:31 -0700 Date: Thu, 20 Aug 2020 18:56:30 -0700 From: Sean Christopherson To: Tom Lendacky Cc: Andy Lutomirski , Dave Hansen , Jim Mattson , Joerg Roedel , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Linux Kernel Mailing List , X86 ML , "Chang S. Bae" , Thomas Gleixner , Sasha Levin , Borislav Petkov , Peter Zijlstra , Ingo Molnar Subject: Re: FSGSBASE causing panic on 5.9-rc1 Message-ID: <20200821015630.GC13886@sjchrist-ice> References: <5756198D-C8BD-4290-BFCA-04424EB230A6@amacapital.net> <20200820220507.GA10269@sjchrist-ice> <20200820223431.GB10269@sjchrist-ice> <30eb9d62-a883-2630-c51f-6f5ee4def07a@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <30eb9d62-a883-2630-c51f-6f5ee4def07a@amd.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 > > > 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.