Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp3030588lqp; Mon, 25 Mar 2024 17:48:13 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWJ9GtN2xQqlITnif7k/lJ6RXdTjJnBZeosRcWCyiGAwixHwF2g0vLQOMdxAoN4pJfOw35IRHnXZ5OJG6zHdz28mF/dl09qffbyFcGMnw== X-Google-Smtp-Source: AGHT+IGo/i3nV6avXw4gOlN2E0Rwk4nzYQKiEd31qRwyvLTNt5jsQG7ZtfBeHVSVE97Xw5zuLeDo X-Received: by 2002:a17:90a:bf0b:b0:29f:a779:1075 with SMTP id c11-20020a17090abf0b00b0029fa7791075mr6105177pjs.37.1711414093283; Mon, 25 Mar 2024 17:48:13 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711414093; cv=pass; d=google.com; s=arc-20160816; b=yeH9xcUBGPQDQ+qPWrhwsaNsn4A6+ScZu+RKviYDPCh3Lyrcyi26dX2AMwCgvW/YyF 5d2kpG0DOtBIFMcuniTKQvQbOQsj54UPRWt1iiS++EmSSv5oylQDy2WGPLQCPM6AHLss WnfRIzGMbJj0nZFkuPyljRX5AVcufLw5KIbgs36alclCbCNsDkDtu4XBpl0AlCiLQUgz 7+ICs+4D5KuSpAWz4RG+ZzcFPy80UgjlgL6Ym4FZVZdas6zEeBZgiaDFbrRE/EzG20le xQ9XG3L972yGVsZv2i3pAHREguOcCemHJdJLQ20HjQIMK0ytNwJ/eO1kHvZf3Exu3Ulv ijcg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:list-unsubscribe:list-subscribe:list-id:precedence :user-agent:content-transfer-encoding:references:in-reply-to:date:cc :to:from:subject:message-id:dkim-signature; bh=Yukuaoa5zcDGAtUDFuTzHk2qar+UNWcKKdsAlD0PyVU=; fh=4txSB7SlDkCTIiHweog6ADSjvzX0flo8GI3OHNa0J/s=; b=AiODXl0z3HqfVoT8TzraFd3L69boBa6ccEG47GDDaJg6fjZm2XuLj2EAYu4SxmXHj0 OEg3QmVR68okRUJ7bmwBp39IOaWXsGJZJ3+ITXm0uIN8FDlNNByawmYPXlwz5/ijtAAn ryDCoehMhDRRGcVp+ndGiSiABvhjEkLbQkrWqO5krlc2V8Bpeamekhi78A+85lu/3GxI XosP7gS31Xe8+dZd/3YNBwYEyimCqzBWDp2xBt7GwptHjNI44qDHxfr/Uhq2jdLdU8bW Stpq/vXp/vyrQktxBRzL7k4oAh8szY6iwRkMTdXM7uWiIohuHP5/zEWG9ylnkmay1UB4 tCUQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=bhO9fU9G; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-118052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id t20-20020a17090b019400b0029c43c3b2fdsi8476554pjs.77.2024.03.25.17.48.12 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 25 Mar 2024 17:48:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-118052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@xry111.site header.s=default header.b=bhO9fU9G; arc=pass (i=1 spf=pass spfdomain=xry111.site dkim=pass dkdomain=xry111.site dmarc=pass fromdomain=xry111.site); spf=pass (google.com: domain of linux-kernel+bounces-118052-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-118052-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=xry111.site Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 05B83B302C5 for ; Mon, 25 Mar 2024 21:41:54 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 7C34D6EB6A; Mon, 25 Mar 2024 21:41:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b="bhO9fU9G" Received: from xry111.site (xry111.site [89.208.246.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 682F633995 for ; Mon, 25 Mar 2024 21:41:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=89.208.246.23 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711402905; cv=none; b=ID9IBaM2LcA7oC/Jw35KsLR1O7Isa21j2e+63SGdQUtx+l2941SG/wz3iWBcxYeS7wa03L+R7PilYoVppBxwQTIWNI8qnIgKuux1vTC+9Jp902h6HhViGnZHYFg5J2/GYiEbHx+j+JGRTvNl/OOgl5wbODLylxOHWhxxtp96JSM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711402905; c=relaxed/simple; bh=Yukuaoa5zcDGAtUDFuTzHk2qar+UNWcKKdsAlD0PyVU=; h=Message-ID:Subject:From:To:Cc:Date:In-Reply-To:References: Content-Type:MIME-Version; b=fStDeh77xvo2fn4KeW7NBeAoH0J/hTLAXINijerLxCd9vNM9dfukJ0yk0Me1In1yyAHhbJjzquLfj5GG8ITIUIujG422lAkA7v1HoKNkmQ8UzhtkzBv5VUtzq5d0I9BJEuIdROMqDEDyOnKo4B7iSSULd/QfYaF5bRBh9/9gPbY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site; spf=pass smtp.mailfrom=xry111.site; dkim=pass (1024-bit key) header.d=xry111.site header.i=@xry111.site header.b=bhO9fU9G; arc=none smtp.client-ip=89.208.246.23 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=xry111.site Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=xry111.site DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=xry111.site; s=default; t=1711402903; bh=Yukuaoa5zcDGAtUDFuTzHk2qar+UNWcKKdsAlD0PyVU=; h=Subject:From:To:Cc:Date:In-Reply-To:References:From; b=bhO9fU9G/zTnI472vhTUUEQT51sHDeCZswpc0aNd9UhkPYV1MZb9yjvQZL6oR7P+P cnn9xjGAeW+96wBYSlEbW3su9+MqIRqXe9paDECbMd6VWo0QqMuhAzUA0JV/e2j0lj wDILSimLoDBEQgMr6F7B0GS0pDwg10t+yd7MJeBI= Received: from [127.0.0.1] (unknown [IPv6:2001:470:683e::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature ECDSA (P-384)) (Client did not present a certificate) (Authenticated sender: xry111@xry111.site) by xry111.site (Postfix) with ESMTPSA id 9FEB767076; Mon, 25 Mar 2024 17:41:41 -0400 (EDT) Message-ID: <177f14cee291788df618a22398fdb027afe0f6c6.camel@xry111.site> Subject: Re: [PATCH v2] x86/mm: Don't disable INVLPG if "incomplete Global INVLPG flushes" is fixed by microcode From: Xi Ruoyao To: Michael Kelley , Dave Hansen Cc: Andy Lutomirski , Peter Zijlstra , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , "x86@kernel.org" , "linux-kernel@vger.kernel.org" , Dexuan Cui Date: Tue, 26 Mar 2024 05:41:40 +0800 In-Reply-To: References: <20240324190503.116160-1-xry111@xry111.site> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable User-Agent: Evolution 3.52.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 On Mon, 2024-03-25 at 20:06 +0000, Michael Kelley wrote: /* snip */ > I haven't done a complete census, but there don't seem to be > that many places in x86 code where the microcode version is > checked. Several (most?) already have some kind of "out" when > running on a hypervisor -- like bad_spectre_microcode(), and > apic_validate_deadline_timer(). So I've sent V3 as https://lore.kernel.org/all/20240325212818.125053-1-xry111@xry111.site/ with the check added. --=20 Xi Ruoyao School of Aerospace Science and Technology, Xidian University