Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp291408pxb; Mon, 2 Nov 2020 22:41:54 -0800 (PST) X-Google-Smtp-Source: ABdhPJyEdCQzlOm/c5yD/Fq+p5thWE7e3YFxphu/bsCeTXTB/1e3ltW/HD0wGYDDZFMH+RoIn943 X-Received: by 2002:aa7:d9c2:: with SMTP id v2mr3765245eds.95.1604385714388; Mon, 02 Nov 2020 22:41:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604385714; cv=none; d=google.com; s=arc-20160816; b=0SCejv7RmhFI2rOPZyYUQ+x0kh83kX0/++BjsMck44ECo+1Z2fWhEZuGmOQsG0rLJd dJRhlGg+ggaMGlKQjTnM/8S1TH6GM9FlUz7y1oA8nM/wkQweqxlZ/B2p5Esu5delZ8vr CJ17gZwoKuCgwVALo6Y40CY9KGYuGAnMOX7bp5mZNl29fyuwT0s5BeUOnNe75zlhhNCq zgqMn/3T/vTgd9cl/iVTB4QI2fWJW5yt0b5UGOqelAwE6E2wE18ARStu29Hu9ULRZhG6 hwxHgydaQFpt6P69jHIMKdpAbYWOXZ5L22/0NV4BkYGeOKVC7SkJAmXBjeCP3A9YLqfG HdfA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=c/8w98OyHpNXDWatzfJ/q4/9iLyr+dymnAisLyILZDs=; b=c4O8zsR278iS71ZY3IWTdWbK9V9AjUSKDLtUL3X2Qe7g5ZancPtscHwQC8byi/fYS3 FokD2lZdy8hndxXNAFbjICYQqEuBqpr61qRW9W5xhlIZbPMiS4RaaohFQY0VjVmybshj Be4CdMxIHyC/jGrL7bYAaBglH21bLhy2CeQCAq8uSxlLcxWxYdqWnUcMBd4qK4ZCmw8Q anQfsRA8n8SoHJpFyJmGrGNctomJ2Jlfn08FEPlKDlcoCjhz29HCAVOcIgFFrlEMUz9N omPy5aE3H/UR8mY1RKZkVGlHr4vFpq4H/OAvhL12JiQlazjeFb4rH6kqslsFkJmcfflP 6NbQ== 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 qx23si11711961ejb.362.2020.11.02.22.41.31; Mon, 02 Nov 2020 22:41:54 -0800 (PST) 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 S1727686AbgKCGjh (ORCPT + 99 others); Tue, 3 Nov 2020 01:39:37 -0500 Received: from mga17.intel.com ([192.55.52.151]:58006 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725968AbgKCGjh (ORCPT ); Tue, 3 Nov 2020 01:39:37 -0500 IronPort-SDR: S3koBqzRcXec5ttgu4tG+5FJrp76Dd3gPqSuCLX0koK4+cDhAaZWLUBiTtHxDeWwfZkKoZQr2a 2s8cwQ54G5pg== X-IronPort-AV: E=McAfee;i="6000,8403,9793"; a="148862341" X-IronPort-AV: E=Sophos;i="5.77,447,1596524400"; d="scan'208";a="148862341" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 22:39:36 -0800 IronPort-SDR: 6lkR3ZW/8tjkAqo80ALm8oSLHurpDG7odCSNga5o9RSrrcu8HwE9ZJRrFXmqIOCKNEFsfd2q8r ppdFrrxigaMQ== X-IronPort-AV: E=Sophos;i="5.77,447,1596524400"; d="scan'208";a="470673893" Received: from xiaoyaol-mobl.ccr.corp.intel.com (HELO [10.239.13.118]) ([10.239.13.118]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 22:39:32 -0800 Subject: Re: [PATCH] KVM: VMX: Enable Notify VM exit To: Paolo Bonzini , Andy Lutomirski , Sean Christopherson Cc: Tao Xu , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Joerg Roedel , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , X86 ML , kvm list , LKML References: <20201102061445.191638-1-tao3.xu@intel.com> <20201102173130.GC21563@linux.intel.com> <8e41101c-6278-3773-8754-ffe0763eaeea@redhat.com> From: Xiaoyao Li Message-ID: <06dbea28-4b4a-4f73-2ad2-9b76a8ca4704@intel.com> Date: Tue, 3 Nov 2020 14:39:30 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <8e41101c-6278-3773-8754-ffe0763eaeea@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 11/3/2020 2:25 AM, Paolo Bonzini wrote: > On 02/11/20 19:01, Andy Lutomirski wrote: >> What's the point? Surely the kernel should reliably mitigate the >> flaw, and the kernel should decide how to do so. > > There is some slowdown in trapping #DB and #AC unconditionally. Though > for these two cases nobody should care so I agree with keeping the code > simple and keeping the workaround. OK. > Also, why would this trigger after more than a few hundred cycles, > something like the length of the longest microcode loop? HZ*10 seems > like a very generous estimate already. > As Sean said in another mail, 1/10 tick should be a placeholder. Glad to see all of you think it should be smaller. We'll come up with more reasonable candidate once we can test on real silicon.