Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp3466169pxx; Mon, 2 Nov 2020 09:34:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJz696I5+i0btRqz9s9sjfoHiyPNsS4Uuk4kPIepwv2kFUMMUIp6HXj+JcT2Z7sJQlQDYvpP X-Received: by 2002:a05:6402:40e:: with SMTP id q14mr4539193edv.169.1604338482160; Mon, 02 Nov 2020 09:34:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604338482; cv=none; d=google.com; s=arc-20160816; b=ipqcuAzshvon/NXflBsBqGeoOaXyEfRWPMox98QwYIHLwaqNCP9Grsw4v5U5E2F9wu Qfon8ysvOAyh+DMoX661FWmKuJIswGA+GYoFS3GoezSkwh9w9N7wNfgmwLP1X7X5jr9o aA41Vi8F+ya3HILmuxPM/jUapLZy9GK7XeUw2RaspeVWI0Sr9f/LL1TgGrHdoZlclHel a+GPI/oKpWCZPwlMsrEhfcFGOBNRknzdxn4pxitvQOf47rmoJ39hSBXCYP+jYioxjdxS 1kytU6WVuFnuUbL/jlNS3FnjMT340Ko3gFiKXwUI19ympuiND6/VQuMf6LnsnlK+tHym SLAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :ironport-sdr:ironport-sdr; bh=u8NW/TvnoBGp1arrpOziZkSe5yQakluRMH0CmiZtKXI=; b=fYmdanGwaPCQllsMgLMwsvaWx6wMOMFC1HJiAyIOERyUT6gvMtqsDmj4zOkIUxUX9V HBUlp6EOlngKp90x9HiGsJZjUWaMK631+pk3MWQr6op5wFoiqQUFJ0OXpY8TPjU3iZG6 P4TJCWTSecVxm2nZ5a8qaLs6HyQVLxdbir3UGTBqlGFy6Nt8hfcLhe8kv/bMqaGmx2tL xio4+7wKSsY0krgEKw2e25/Ebnu8h78I14ckbd0q2hgIoCBb+eASgo7sc3N4w9lg1zMT fvrstSpRwzyNgZ5o5tUs8RwpqB8NxjrD78EyyBjpSulKQQoZMd3XAT+Pb/CYteElT1IX 4c3w== 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 dn22si11630092edb.603.2020.11.02.09.34.18; Mon, 02 Nov 2020 09:34:42 -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 S1727695AbgKBRcj (ORCPT + 99 others); Mon, 2 Nov 2020 12:32:39 -0500 Received: from mga09.intel.com ([134.134.136.24]:60774 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726587AbgKBRci (ORCPT ); Mon, 2 Nov 2020 12:32:38 -0500 IronPort-SDR: 5GYPaCuZgQaEpPHK3BSx7kzgVcq5QwNsINTf02SmvRsjRqBT+AOn6Jp+jZq0jzlSS/v30NMwlx A37yo2HwmaFg== X-IronPort-AV: E=McAfee;i="6000,8403,9793"; a="169054546" X-IronPort-AV: E=Sophos;i="5.77,445,1596524400"; d="scan'208";a="169054546" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 09:32:38 -0800 IronPort-SDR: b2zKfegSK6u2fKZJCw6Gaf/EocNmnRgzgPtTJHciwnCyb8+DMpI9FJ133BAjKXmGfOT9DNxNSc 53UxS1zaFlUw== X-IronPort-AV: E=Sophos;i="5.77,445,1596524400"; d="scan'208";a="324927291" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.160]) by orsmga006-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Nov 2020 09:32:38 -0800 Date: Mon, 2 Nov 2020 09:32:37 -0800 From: Sean Christopherson To: Tao Xu Cc: pbonzini@redhat.com, vkuznets@redhat.com, wanpengli@tencent.com, jmattson@google.com, joro@8bytes.org, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Xiaoyao Li Subject: Re: [PATCH] KVM: VMX: Enable Notify VM exit Message-ID: <20201102173236.GD21563@linux.intel.com> References: <20201102061445.191638-1-tao3.xu@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201102061445.191638-1-tao3.xu@intel.com> User-Agent: Mutt/1.5.24 (2015-08-30) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Nov 02, 2020 at 02:14:45PM +0800, Tao Xu wrote: > There are some cases that malicious virtual machines can cause CPU stuck > (event windows don't open up), e.g., infinite loop in microcode when > nested #AC (CVE-2015-5307). No event window obviously means no events, > e.g. NMIs, SMIs, and IRQs will all be blocked, may cause the related > hardware CPU can't be used by host or other VM. > > To resolve those cases, it can enable a notify VM exit if no > event window occur in VMX non-root mode for a specified amount of > time (notify window). > > Expose a module param for setting notify window, default setting it to > the time as 1/10 of periodic tick, and user can set it to 0 to disable > this feature. > > TODO: > 1. The appropriate value of notify window. > 2. Another patch to disable interception of #DB and #AC when notify > VM-Exiting is enabled. > > Co-developed-by: Xiaoyao Li > Signed-off-by: Tao Xu > Signed-off-by: Xiaoyao Li Incorrect ordering, since you're sending the patch, you "handled" it last, therefore your SOB should come last, i.e.: Co-developed-by: Xiaoyao Li Signed-off-by: Xiaoyao Li Signed-off-by: Tao Xu